Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show grails test results in Netbeans IDE

does anybody know a possibility to show the Unit-Test results of a grails project in the "Test Result"-Window of the netbeans IDE? The test results are saved in the project folder as JUnit XML Files.

like image 595
Timo Haberkern Avatar asked Oct 15 '10 06:10

Timo Haberkern


People also ask

Does NetBeans support JUnit 5?

Junit 5 is, architecturally, so different to previous versions, that it should really be called Jupiter, instead. However, this is not a problem when you're using Maven, since Maven resolves all transitive dependencies for you, and is supported in that way from Apache NetBeans 10 onwards.

How do I get code coverage in NetBeans?

Code Coverage on the NetBeans Platform In the IDE, go to Tools | Plugins and install "Cobertura Module Test Coverage".

Does NetBeans come with JUnit?

Netbeans already includes the junit classes. So there is nothing to install.


1 Answers

It does not look like there is any such integration like there is for e.g. Ruby.

For Java projects, the IDE does not wait for XML files to be written to a build directory; it listens for special events in the Ant <junit> task and reports them immediately.

I do not think much work is being done on the Groovy support generally, but perhaps someone could write a plugin which just waits for TEST-*.xml to appear in some build directory, and displays them in Test Results. This would require using the org.netbeans.modules.gsf.testrunner API (currently not published for public use). Such a plugin could be handy not just for Grails users.

like image 172
Jesse Glick Avatar answered Oct 05 '22 17:10

Jesse Glick