You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bernd PrĂ¼nster (JIRA)" <ji...@apache.org> on 2016/04/26 17:12:12 UTC

[jira] [Commented] (SUREFIRE-1238) Surefire: Test using @dataprovider are skipped by surefire

    [ https://issues.apache.org/jira/browse/SUREFIRE-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15258236#comment-15258236 ] 

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: https://issues.apache.org/jira/browse/SUREFIRE-1238
>             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
(v6.3.4#6332)