maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd PrĂ¼nster (JIRA) <>
Subject [jira] [Commented] (SUREFIRE-1238) Surefire: Test using @dataprovider are skipped by surefire
Date Tue, 26 Apr 2016 15:12:12 GMT


Bernd PrĂ¼nster commented on SUREFIRE-1238:

I can confirm this behaviour.
It does not matter whether a testng.xml is used or not.
For Java 1.6 compatibility reasons I am using TestNG version 6.8.21 with version 2.19.1 of
the surefire plugin.

Unfortunately I cannot share any sources, or the pom.xml.
Running the tests from within an IDE works flawlessly, however.

The tests are also recognised by the surefire plugin. Yet zero tests are run, since the @DataProvider-Annotations
are ignored.
This results in Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

> Surefire: Test using @dataprovider are skipped by surefire
> ----------------------------------------------------------
>                 Key: SUREFIRE-1238
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.19.1
>            Reporter: RegisRozario
>            Assignee: Tibor Digana
>            Priority: Blocker
>         Attachments: pom.xml
> Tests using @dataprovider are skipped by surefire
> ex:
> @Test(dataProvider="test") --> this test will be skipped by the surefire plugin
> I have my data stored in a excel file and am using a testng dataprovider to pass the
value to this test.
> Note: Excel file is available under src/test/java

This message was sent by Atlassian JIRA

View raw message