tags:

views:

286

answers:

2

We're currently using JUnit 4.4 and Ant 1.7.1 for our builds. I have some test cases that are @Ignored. When I run them in Eclipse, the JUnit test runner reports them as ignored. I would like to see them listed in the XML output from Ant (so I can report on them), but they do not seem to be there.

Does anyone have this working? Is there a switch to turn them on? An upgrade I need to do?

+1  A: 

It looks like this is a known Ant issue/bug.

jeffl8n
As lame as it is, this is the answer. Worse, it's a known issue that they don't see fit to fix because it "seems to work well enough" without it.
Brandon DuRette
A: 

This thread talks about the same issue, but it provides some additional information: you can get data on ignored tests when running the tests using maven surefire, and hudson is able to display that data.

http://n4.nabble.com/Is-it-possible-to-show-Ignore-JUnit-tests-tp1565288p1565288.html

nikita