I just tried out the CI Bamboo, problem is that some of my specs2 test results (exported to JUnit XML) are not parsed:
2013-03-10 15:16:17,650 ERROR [pool-7-thread-8] [TestCollationServiceImpl] Failed to parse test result file "LogItemDocSpec.xml"
java.lang.NullPointerException
at com.atlassian.bamboo.build.test.JunitTestResultsParser$TestCaseElementParser.startElement(JunitTestResultsParser.java:200)
at com.atlassian.bamboo.configuration.DefaultContentHandler.startElement(DefaultContentHandler.java:59)
at com.atlassian.bamboo.build.test.JunitTestResultsParser.startElement(JunitTestResultsParser.java:74)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
So I'm not sure who is at fault here; Bamboo, Specs2 or me.
Here is one of the files it couldn't parse:
<testsuite hostname="mac" name="com.myproject.model.LogItemDocSpec" tests="4" errors="0" failures="0" skipped="0" time="0.000">
<testcase classname="DBObject" time="0.000">
</testcase><testcase name="Log Item Doc should::read from::JSON" classname="com.myproject.model.LogItemDocSpec" time="0.135">
</testcase><testcase name="Log Item Doc should::read from::DBObject" classname="com.myproject.model.LogItemDocSpec" time="0.135">
</testcase><testcase name="Log Item Doc should::write to::JSON" classname="com.myproject.model.LogItemDocSpec" time="0.135">
<system-out></system-out>
<system-err></system-err>
And here is one that it could parse:
<testsuite hostname="mac" name="com.myproject.model.APIKeySpec" tests="4" errors="0" failures="0" skipped="0" time="0.000">
<testcase name="APIKey should::convert to string and back" classname="com.myproject.model.APIKeySpec" time="0.004">
</testcase><testcase name="APIKey should::parse from string" classname="com.myproject.model.APIKeySpec" time="0.005">
</testcase><testcase name="APIKey should::throw exception for invalid key" classname="com.myproject.model.APIKeySpec" time="0.017">
</testcase><testcase name="APIKey should::convert to byte[] and back" classname="com.myproject.model.APIKeySpec" time="0.004">
<system-out></system-out>
<system-err></system-err>