Is there an existing way to generate assurance reports using a simple build tool?

I am working on a project using Scala to run Selenium tests as part of an ongoing integration process. Hudson displays very useful information based on the results in surefire reports, but I would rather use sbt for Maven. Is there an existing way to get sbt for reporting confidence in sbt tests?

+5
source share
1 answer

There are three approaches to achieve this. I think the first will be a big contribution to SBT!

Burn TestsListener for SBT to generate Surefire XML reports

There is currently no uniform reporting according to the Maven surefire plugin. One could add this to the SBT using the TestsListener .

Passing arguments to the test environment to trigger XML generation

I don’t think Specs or ScalaTest directly support the Surefire XML format. This was recently requested for ScalaTest.

Use the JUnit adapter for your tests and use the JUnitRunner

ScalaTest and Specs provide features that you can mix with your tests so that they are compatible with JUnit. JUnit support in SBT is being reintegrated right now, but I don't know if it will support it.

By itself, it uses Maven + Surefire to build Hudson.

+2

All Articles