I’ve been experimenting with JUnit exports of test runs recently and upon looking at the format noticed that you can display a duration for each testcase.
This would be really useful for us as it could be a quick way to track performance over time and ensure we don’t make any changes that destroy this.
I think I can get this information quite easily if UnitTest::TestResult had Time startTime, endTime members which were filled in by beginTest/endTest.
I also miss the fact that the test runner doesn’t exit the application with anything else than 0 exit code in case any error was encountered during tests. This will make it harder for CI to fail on tests failures.
i noticed the UnitTestRunner app that runs all juce unit tests has an hardcoded 0 return code, so automating juce unit tests in travis and appveyor is never failing
I’m going to give this a gentle bump seeing as it’s a small request and would really help me out with developing this new module.
The key thing here is that it really has to be part of juce::UnitTest in order to parse the unit test results in to JUnit format so it’s shown in our CI. Just adding timestamps/durations to our log files isn’t really an option as you can’t track them over time easily.