| Display Results from TestNG in Build-View (contribute new functionality) [message #837033] |
Thu, 05 April 2012 03:29  |
Marc Schlegel Messages: 25 Registered: July 2009 |
Junior Member |
|
|
Hello everyone
In my new project there was the decision to use TestNG over JUnit which works fine for everything. Except the Mylyn Builds View which can only display JUnit results from Jenkins builds.
Am I missing some configuration or is this feature planned for an upcomming release (I am using Mylyn 3.7 with Mylyn Builds 0.9).
If not, would it be difficult to implement this?...maybe we can provide the implementation
EDIT:
I checked out the source and found some places where I might hook in the TestNG-Results:
TestResultManager # showInJUnitViewInternal
JUnitResultGenerator
TestResult (which is generated by EMF model)
Any advices how to approach this?
[Updated on: Thu, 05 April 2012 08:27] Report message to a moderator
|
|
|
|
| Re: Display Results from TestNG in Build-View [message #847740 is a reply to message #845113] |
Tue, 17 April 2012 11:54   |
Marc Schlegel Messages: 25 Registered: July 2009 |
Junior Member |
|
|
Hi Steffen
Thanks for the promising view 
I checked the URLs and the result can be viewed by the remote-api (adding /api/xml for instance). The starting URL would be <joburl>/testngreports and from there you can get nice xml-responses with all kinds of results.
Example
<joburl>/testngreporst/<package>/<testclass>/<testmedhod>/api/xml
<methodResult>
<name>someTest</name>
<className>
mypackage.MyTestClass
</className>
<duration>0</duration>
<startedAt>1334248592000</startedAt>
<status>PASS</status>
</methodResult>
Last weekend I dug a little deeper in the connector-code and saw that Junit is somewhat coupled in the code (e.g. the plugin calls some PDE-JUnit-stuff). But I would be happy to help if I can...so where would I file the enhancement?
best regards
Marc
[Updated on: Tue, 17 April 2012 11:55] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06826 seconds