Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specs2 integration problem #3

Open
zalmanu opened this issue Apr 2, 2018 · 1 comment
Open

specs2 integration problem #3

zalmanu opened this issue Apr 2, 2018 · 1 comment

Comments

@zalmanu
Copy link

zalmanu commented Apr 2, 2018

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 zalmanu changed the title specs2 integration specs2 integration problem Apr 2, 2018
@rpau
Copy link
Owner

rpau commented Apr 2, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants