Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn Builds » Display Results from TestNG in Build-View (contribute new functionality)(Currently only JUnit result are displayed (Jenkins))
Display Results from TestNG in Build-View (contribute new functionality) [message #837033] Thu, 05 April 2012 07:29 Go to next message
Marc Schlegel is currently offline Marc SchlegelFriend
Messages: 69
Registered: July 2009
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 12:27]

Report message to a moderator

Re: Display Results from TestNG in Build-View [message #845113 is a reply to message #837033] Sat, 14 April 2012 19:09 Go to previous messageGo to next message
Steffen Pingel is currently offline Steffen PingelFriend
Messages: 706
Registered: July 2009
Senior Member
The Hudson/Jenkins connector displays the unit test results that are
provided by the Hudson/Jenkins server. It should be reasonably straight
forward to add support for other test plug-ins assuming that the test
results are accessible through the remote API.

Please feel free to file an enhancement request with a URL to a build job
that has TestNG results and we can look into it further.

Steffen


Marc Schlegel wrote:

> 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
--
Steffen Pingel
Committer, http://eclipse.org/mylyn
Senior Developer, http://tasktop.com
Re: Display Results from TestNG in Build-View [message #847740 is a reply to message #845113] Tue, 17 April 2012 15:54 Go to previous messageGo to next message
Marc Schlegel is currently offline Marc SchlegelFriend
Messages: 69
Registered: July 2009
Member
Hi Steffen

Thanks for the promising view Smile

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 15:55]

Report message to a moderator

Re: Display Results from TestNG in Build-View [message #848206 is a reply to message #847740] Wed, 18 April 2012 02:53 Go to previous messageGo to next message
Steffen Pingel is currently offline Steffen PingelFriend
Messages: 706
Registered: July 2009
Senior Member
That looks pretty good. We are certainly welcoming contributions if you are
interested in adding TestNG integration. The best next step would be to
file a bug against Mylyn Builds/Hudson Connector in the Eclipse.org Bugzilla
and we can take it from there.

Thanks,

Steffen


Marc Schlegel wrote:

> 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.
>
> best regards
> Marc
--
Steffen Pingel
Committer, http://eclipse.org/mylyn
Senior Developer, http://tasktop.com
Re: Display Results from TestNG in Build-View [message #848398 is a reply to message #848206] Wed, 18 April 2012 07:27 Go to previous message
Marc Schlegel is currently offline Marc SchlegelFriend
Messages: 69
Registered: July 2009
Member
Bug has been filed: Bug-ID 377054 (sorry, I cannot post links because I am not allowed to Sad )
Previous Topic:Welcome to eclipse.builds
Next Topic:Builds view not working with Jenkins 1.509.4
Goto Forum:
  


Current Time: Fri Nov 16 18:47:20 GMT 2018

Powered by FUDForum. Page generated in 0.01717 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top