[GRADLE-754] TestNG suiteXMLBuilder doesn't work Created: 24/Nov/09  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: 0.8
Fix Version/s: 0.9-rc-1

Type: Bug
Reporter: Tomek Kaczanowski Assignee: Adam Murdoch
Resolution: Fixed Votes: 0


 Description   

I downloaded gradle-0.8 sources
cd src/samples/testng/suitexmlbuilder/
gradle clean test -i
[...]
:compileTestJava
:: resolving dependencies :: unspecified#suitexmlbuilder;unspecified
confs: [testCompile]
found org.testng#testng;5.8 in chain
:: resolution report :: resolve 11ms :: artifacts dl 8ms
---------------------------------------------------------------------

  modules artifacts
conf number search dwnlded evicted number dwnlded

---------------------------------------------------------------------

testCompile 1 0 0 0 1 0

---------------------------------------------------------------------
[ant:javac] Compiling 1 source file to /home/tomek/Downloads/gradle-0.8/src/samples/testng/suitexmlbuilder/build/classes/test
:processTestResources
:testClasses
:test
:: resolving dependencies :: unspecified#suitexmlbuilder;unspecified
confs: [testRuntime]
found org.testng#testng;5.8 in chain
:: resolution report :: resolve 6ms :: artifacts dl 8ms
---------------------------------------------------------------------

  modules artifacts
conf number search dwnlded evicted number dwnlded

---------------------------------------------------------------------

testRuntime 1 0 0 0 1 0

---------------------------------------------------------------------
executing testng tests...
[ant:testng] [Parser] Running:
[ant:testng] /home/tomek/Downloads/gradle-0.8/src/samples/testng/suitexmlbuilder/build/test-results/build-suite.xml
[ant:testng]
[ant:testng]
[ant:testng] ===============================================
[ant:testng] testing-testng
[ant:testng] Total tests run: 0, Failures: 0, Skips: 0
[ant:testng] ===============================================
[ant:testng]
testng tests executed.

BUILD SUCCESSFUL

Total time: 10.749 secs

It seems like no tests were executed

less build/reports/tests/testng-results.xml

<testng-results>
<reporter-output>
</reporter-output>
<suite name="testing-testng">
<groups>
</groups>
<test name="testing-testng">
</test>
</suite>
</testng-results>

but the suite says there are some tests that should be executed:

less build/test-results/build-suite.xml

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"><suite name='testing-testng'>
<test name='testing-testng' annotations='JDK' verbose='1'>
<class name='org.gradle.testng.UserImplTest' />
</test>
</suite>



 Comments   
Comment by Adam Murdoch [ 21/Feb/10 ]

Fixed as part of changes for GRADLE-800

Generated at Wed Jun 30 11:38:00 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.