I have a maven build configuration in TeamCity that runs one JUnit TestSuite with a big number of tests in it. The problem is that it takes about an hour to run them all and I only get results after all tests are finished.
Is there a way to report individual test results before the whole TestSuite is finished?
As far as I understand, there are two options:
1. Service messages. Can't think of a way to send a service message from the JUnit test, as Surefire plugin redirects all output to the file.
2. XML Test reporting plugin. Documentation says
When possible, parsing of partly written files is supported, so the reporting is started as soon as first data is avaialble and more data is reported as it is written to the report files
What conditions should be met to make the parsing of partly written files possible? Which format will you suggest?
Is there a better way to do this ?