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

Is there a way to run scoverage without instrumenting production code? #264

Closed
btomala opened this issue Sep 19, 2018 · 2 comments
Closed

Comments

@btomala
Copy link

btomala commented Sep 19, 2018

As it is mention in #128 (comment) when you will set the coverageEnabled := true in your build.sbt There is no way to build production code without instrumenting it. When I'm trying build tests with coverageOn flag, I got an exception about missing dependencies described in #263

So my question is how to run scoverage without instrumenting production code?

@gslowikowski
Copy link
Member

Hi @btomala

You shouldn't use coverageEnabled := true setting. Setting this value to false is for excluding in some modules of multi module build is for excluding then from coverage. Setting to true does not make sense.

@btomala
Copy link
Author

btomala commented Sep 23, 2018

I got it there were several issues related to my build. Thanks for the help 👍

@btomala btomala closed this as completed Sep 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants