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

Julien Herr commented on SUREFIRE-1154:
---------------------------------------

Yes, I'm trying to run TestNG tests of TestNG project (like JUnit project run 
JUnit tests)

Currently, surefire is looking for a TestNG dependency which has no sense for 
TestNG project itself.

Results[1] are the same with[2] or without[3] forcing the TestNG provider.

The diff I propose fixes the problem and will work (via configuration of 
`testNGArtifactName`) if TestNG changes.

[1] https://gist.github.com/juherr/e2081b6d6823c05c88bf
[2] https://github.com/cbeust/testng/compare/master...juherr:surefire-1154-bis
[3] https://github.com/cbeust/testng/compare/master...juherr:surefire-1154

> TestNG should be able to run its own tests
> ------------------------------------------
>
>                 Key: SUREFIRE-1154
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1154
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: TestNG support
>            Reporter: Julien Herr
>            Priority: Minor
>
> Currently, TestNG could not run its own tests due to: 
> {code}
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test 
> (default-test) on project testng: suiteXmlFiles is configured, but there is 
> no TestNG dependency
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to