Created attachment 107748 [details]
Bundled Hg repository with sample project
I am experimenting with TestNG and I'd like to use the TestNG's Ant task to run the tests (both JUnit as well as TestNG) if testng.jar is on classpath.
I guess it can be done with small conditional check in build-impl.xml. I am going to attach my sample project (use "hg unbundle project.hg" to get it). The following changeset contains the actual change in the build-impl.xml.
user: Jaroslav Tulach <firstname.lastname@example.org>
date: Thu Apr 14 12:07:34 2011 +0200
summary: Run with TestNG Ant task if it is available
Not everything is working yet: I cannot execute both JUnit and TestNG tests at once. The Test Results window does not show anything yet.
After the recent work by Lukáš Jungmann the dual mode execution should not be a problem anymore: http://wiki.apidesign.org/wiki/TestNG
Also other Lukáš's work could solve the issue with results window.
isn't this a duplicate of issue #208873? Possible patch is already attached there, so I think this can be resolved/closed.
*** This bug has been marked as a duplicate of bug 208873 ***