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

2016-04-27 Thread JIRA

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

Bernd PrĂ¼nster commented on SUREFIRE-1238:
--

I can at least confirm that my report was inaccurate. It really does not have 
anything to do with the surefire plugin.
The problem was another library failing silently when invoking Maven from the 
command line where a Java version different from the one configured in my IDE 
was used.

> 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)


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

2016-04-26 Thread Tibor Digana (JIRA)

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

Tibor Digana commented on SUREFIRE-1238:


I guess this has nothing to do with surefire in real because we do not control 
the @DataProvider annotation.
It's fully under the control of TestNG artifact. After seen your POM I would 
say that you should remove junit:junit:3.8.1 because the TestNG declares 
transitive dependency of junit in higher version already. Maybe this would 
help, but if not then I would recommend you to open issue in the TestNG project 
at GitHub and ask Cerdic if testng.xml is working with data provider in your 
version 6.9.10 of TestNG.

> 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)


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

2016-04-26 Thread JIRA

[ 
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)


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

2016-03-22 Thread Tibor Digana (JIRA)

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

Tibor Digana commented on SUREFIRE-1238:


[~rbernard]
Pls atach the file
C:\Users\rbernard\workspace\Learning\testng.xml
and files in src/main/java and src/test/java.
Please use Version 2.19.1 instead of 2.19.

> 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)