TestNG test results counted 3 times.

95 views
Skip to first unread message

Jeff

unread,
Apr 11, 2016, 11:57:42 PM4/11/16
to GoCD User Mailing List
I have multiple Maven jobs that run tests using TestNG.  I've listed the surefire report as a test artifact and the GoCD results does pick it up, but it reports the results 3 times for every category (pass/fail).  

Has anyone seen this?

--
Jeff Vincent
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent

Pankaj Lal

unread,
Jun 2, 2016, 2:17:20 AM6/2/16
to go-cd
Jeff, How do you mention the surefire testng reports to go.cd as test artifact

I said **/target/surefire-reports/testng-results.xml 

The logs however say that
Ignoring file testng-results.xml - it is not a recognised test file

On looking into the agent's surefire-reports directory, the file is pretty much there and has some good valid content.

Isn't testng supported by default. Should I add another task or another plugin so that go picks it up.

Jeff

unread,
Jun 2, 2016, 11:21:24 AM6/2/16
to GoCD User Mailing List
I specify the entire surefire reports folder as an artifact so I can publish the whole surefire report on a custom tab:

Source
**/qa-libs/target/surefire-reports

Destination
qa_results

Type
Test Artifact

I haven't tried just publishing a single xml file.  But now that you asked that, I wonder if that is why mine counts tests multiple times.  There are a lot of different XML files in that sub-directory. 

Anyone know what files GoCD would be looking for when publishing an entire folder as a Test Artifact?

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages