Uploaded image for project: 'SonarPHP'
  1. SonarPHP
  2. SONARPHP-927

Stop logging warnings when importing test results based on 'dataProvider'

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4
    • Component/s: Unit Tests
    • Labels:
      None

      Description

      When using `@dataProvider` in unit tests, warnings are printed:

      WARN: Test cases must always be descendants of a file-based suite, skipping : testException with data set #0 in GoogleMapsClient\Tests\ApiExceptionsTest::testException
      WARN: Test cases must always be descendants of a file-based suite, skipping : testException with data set #1 in GoogleMapsClient\Tests\ApiExceptionsTest::testException
      WARN: Test cases must always be descendants of a file-based suite, skipping : testException with data set #2 in GoogleMapsClient\Tests\ApiExceptionsTest::testException
      ...
      

      See example project having this problem (and its travis analysis)

      Despite the warnings, it seems that the imported results are correct.

      Those warnings should not appear anymore in such a case.

        Attachments

          Activity

            People

            Assignee:
            karim.ouerghemmi Karim El Ouerghemmi
            Reporter:
            elena.vilchik Elena Vilchik
            Votes:
            9 Vote for this issue
            Watchers:
            11 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: