Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17405

In case of usage of @After* in tests screenshots are not showing the failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 11.10.5
    • Fix Version/s: 13.8-rc-1
    • Component/s: Test Framework
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      We are automatically taking a screenshot in case of test failure, in docker test or in standard test. However if we use an teardown method (@AfterEach), the screenshot shows what happens on this method, and not what actually fails.
      It's less a problem for docker tests since we have the full video, but still could be nice to have the screenshot taken on the failure.

        Attachments

          Activity

            People

            Assignee:
            vmassol Vincent Massol
            Reporter:
            surli Simon Urli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: