junit4git
junit4git copied to clipboard
specs2 integration problem
First of all, great work with the project!
Repro steps:
- create the initial report
- make no changes, remain on
master
branch - re-run the tests
- all the tests run again instead of being skipped
Complete stack: Scala, specs2 (specs extend SpecificationWithJUnit
), Maven.
Is it supposed to run of of the box with specs2 or this is normal behaviour?
I haven't tested it yet with specs2 :)
However, it is necessary to be in a different branch after running the tests in master to validate if the tests are skipped or not. In other words:
git checkout master
gradle test
git checkout -b my-new-branch
gradle test
If you are running scala tests you should use this module:
https://github.com/rpau/junit4git/tree/master/scalatest4git_211
And, I would say add this annotation:
@RunWith(classOf[ScalaGitRunner])
I do not know if this is incompatible with using specs2 :) So, let me know if it could work, otherwise, you should provide a different module for specs2.
Thanks a lot for your feedback!