Plugin tests on Eclipse

11 views
Skip to first unread message

Ikedam

unread,
Dec 7, 2014, 12:20:49 AM12/7/14
to jenkin...@googlegroups.com
Hello.

Is there a way to run plugin tests on Eclipse (not via mvn tests, but via Run As > JUnit Test) ?

I know that launching tests on Eclipse results test failures as setups usually done by maven doesn't run
(annotation processing, creating the.jpl and so on).
Then I usually codes on Eclipse and run tests on command lines.

But I want also to test plugins on Eclipse!
I even plan to develop an Eclipse plugin to run tests for Jenkins plugins if there's really no easy way
(It would be a hard road as I haven't ever develop Eclipse plugins).

What I want:
* Run a single selected test.
    * It can be done by running mvn test -Dtest=XxxTestCase#testXxx,
        but I want to do that easily like from a context menu!
* Jump to lines caused test failure from test reports.
* (Root cause) I want to join testroots (http://www.testroots.org/testroots_watchdog.html)
    * I'm afraid I can't send proper reports if I launch tests on command lines.

Instructions by Hugh Perkins are very helpful, but they're not easy to do each time.
https://wiki.jenkins-ci.org/display/JENKINS/Eclipse+alternative+build+setup

Please let me know if someone run tests on Eclipse.

Regards,
ikedam
Reply all
Reply to author
Forward
0 new messages