samedi 30 mars 2019

Spek2 generate XML report that includes Scenario and Feature level information for Jenkins/Surefire

I have made behavior tests in Spek2/Kotlin which are working very nicely.

To run these on Jenkins with surefire and maven I use a series of commands like:

mvn clean
mvn surefire-report:report
mvn site

My intention is to create a nice HTML page to see the test results which show the class, the Feature, The Scenario and then the test steps (Given, Then, etc)

However what I get is a report showing the Class then directly listing out the Given, then, etc steps with no reference to the Feature or Scenario anywhere on the page.

Surely this is possible to do but I have been battling with it for days now to no avail!

Aucun commentaire:

Enregistrer un commentaire