I'm working on a project using Scala running Selenium tests as part of a continuous integration process. Hudson displays very helpful information based on the results in the surefire reports but I would much prefer using sbt to Maven. Is there an existing way to get sbt to generate surefire reports from sbt tests?
There are three approaches to achieve this. I think the first would be a great contribution to make to SBT!
There is currently no unified reporting, as per the Maven surefire plugin. It would be possible to add this to SBT with a custom TestsListener.
I don't think Specs or ScalaTest support the Surefire XML format directly. It was recently requested for ScalaTest.
ScalaTest and Specs provide traits you can mix in to your tests so they are compatible with JUnit. JUnit support in SBT is being re-integrated right now, but I don't know if it will support this.
Specs itself uses the Maven + Surefire for it's Hudson build.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With