JUnit XML reports being skipped by Ant JUnit report watcher

I have an agent using a command line runner that runs a python script that outputs several junit-*.xml files and the runner is set to watch those files. At the moment the script is outputting three files and only one of them gets processed correctly; the other two get picked up, but the test suite (the only one in the file) gets skipped. The log is:

C:\tmp\junit-blah.xml report processed, 1 suite(s) skipped

Is there any way I can find out more about why the suite is skipped? What is the behaviour of the XML JUnit report watcher: does it parse the files after the test is finished or does it continuously watch the file and process the output "on-the-fly"?

Thank you.

2 comments
Comment actions Permalink

Hello, Alexey,

>> What is the behaviour of the XML JUnit report watcher: does it parse the  files after the test is finished or does it continuously watch the file  and process the output "on-the-fly"

The xml-report-plugin introduces parsing Ant JUnit reports on-the-fly. When the report contains any parsable piece of information, we process it and report tests.

>> Is there any way I can find out more about why the suite is skipped?

Please examine your xml output, do these three reports contain separate suits?
The plugin skips a suit only if it has already been processed (when parsing some other report).

0
Comment actions Permalink

Victory,

thank you very much for your reply. The problem indeed was in the fact that the files technically had the same suites in them: all the suites had empty strings for names, so the parser perceived them as being the same.

0

Please sign in to leave a comment.