junit4git icon indicating copy to clipboard operation
junit4git copied to clipboard

specs2 integration problem

Open zalmanu opened this issue 6 years ago • 1 comments

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?

zalmanu avatar Apr 02 '18 15:04 zalmanu

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!

rpau avatar Apr 02 '18 17:04 rpau