TestNG test methods that take an argument are not included in the Test Coverage report

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 2.4.3
    • Affects Version/s: 2.4.2
    • Component/s: Reporting
    • None
    • Environment:

      Maven 2.0.9, IntelliJ 8.0.1, Mac OS X 10.5.6, Apple Java 6

      I have a TestNG test class. When I instrument it and run it with Clover, the resulting Test Coverage report shows a total of 3 tests, despite the fact that the class has 5 public methods annotated with @Test. 2 of these take an argument, supplied with a DataProvider, and I suspect that it is these that are not being counted.

      Viewing the code in IntelliJ IDEA shows that all 5 tests did, in fact, execute.

            Assignee:
            BrendanA
            Reporter:
            Adrian Hempel [Atlassian]
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: