Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1766

Surefire does not display TestNG data provider values on command line

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-M4
    • 3.0.0-M5
    • TestNG support
    • None
    • Maven 3.6.3
      Surefire 3.0.0-M4
      TestNG 7.1.0

    Description

      When using Surefire's DataProvider annotation, TestNG also exposes the actual parameters that were used for each invocation. These parameters are stored in the testng-results.xml file, and as such, should be available for consumption.

      It looks like they end up in the report HTML files, but they are not shown when running the tests on the command line.

      I've created a small POC repository at https://github.com/sonOfRa/testng-surefire-poc. A simple "mvn test" invocation should yield some succeeding and some failing tests. When looking at the  generated HTML reports, they contain the full information. When looking at the command line output, the exact problems are not visible.

      When running the tests in an IDE like IntelliJ IDEA, the parameters are shown alongside the test name. I've attaced a screenshot of this for reference.

      SUREFIRE-382 may be related to  this issue.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tibordigana Tibor Digana
            sonOfRa Simon Levermann
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m

                Slack

                  Issue deployment