Hi All,
As I spent a lot of time finding flaky tests and time wasters in a huge set of acceptance tests. To help me with that task I came up with a new test reporter that produces tabular result files rather than the old junit xml.
Here is an example:
2015-02-23T00:22:37 FAILURE 0.0 ExampleSpec errors_should_be_reported My error
2015-02-23T00:22:37 SUCCESS 2.001 ExampleSpec test_should_take_approximately_2_seconds
2015-02-23T00:22:37 SUCCESS 0.502 ExampleSpec test_should_take_approximately_0.5_seconds
2015-02-23T00:22:37 IGNORED 0.0 AnotherSpec this_should_be_ignored
…
Finding the top three time wasters is now a matter of:
cat target/test-results-latest.txt \
| sort --numeric --reverse --key=3 \
| head -n 3
It also allows to conveniently analyse across multiple runs. More information is available here:
https://github.com/programmiersportgruppe/sbt-tabular-test-reporterTo get started add this to your project/plugins.sbt:
addSbtPlugin("org.programmiersportgruppe.sbt" %% "tabulartestreporter" % "1.4.0")
I am keen on your feedback/ pull requests.
Best regards and sorry for the shameless plug,
Felix