Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-398

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 2.4.3
    • 2.4.2
    • Reporting
    • None
    • Maven 2.0.9, IntelliJ 8.0.1, Mac OS X 10.5.6, Apple Java 6

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: