-
Notifications
You must be signed in to change notification settings - Fork 10
Won't this run tests twice? #2
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
Comments
@gslowikowski wondering if you might be able to help me out. i tried to follow what you were saying over in the closed ticket i reffed above but im still getting 2 runs of test if i turn of all scoverage i dont get a report... so im kinda confused as to why you said to disable all tasks for scoverage in the pom.xml |
Hi @babineaum Sorry for not responding for some time. IMPORTANT! Generally, I never add scoverage tasks to my poms ( The issue scoverage/scoverage-maven-plugin#39 was about forking scoverage lifecycle from already forked scoverage lifecycle. It is possible, but does not make sense. |
Hmmm ok well i seem to have the same problem as the other person "ghost". I guess my question is, is there a way to run a 'mvn clean install' and have the build create an artifact that I can deploy and also run instrumented tests without running the non instrumented tests as well? Edit: I'll note that I am getting two runs of the tests, one pre the scoverage fork during the test phase, by scalattest-maven-plugin and the other during the scoverage fork when scoverage calls scalatest-maven-plugin and runs tests after instrumentation. |
You need two Maven calls, for example:
There is no way (IMO) to set and clear |
For me single |
@gslowikowski |
There is a way to avoid running tests twice now. Check this issue scoverage/scoverage-maven-plugin#61 please. |
solution: |
scoverage-maven-samples/different-test-frameworks/scalatest/pom.xml
Line 160 in afc03ac
Accoring to this closed issue scoverage/scoverage-maven-plugin#39, this pom file would run tests twice, is that correct?
The text was updated successfully, but these errors were encountered: