-
Notifications
You must be signed in to change notification settings - Fork 67
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
Unable to run code coverage for integration tests in Play 2.4.2 project #59
Comments
Is there a solution I get the same issues |
same here too |
same here |
Currently happening with plugin version 2.2.0 |
same here too |
same here too with jacoco4sbt plugin version 2.3.0 and 2.1.6 |
Looks like play project requires additional
In general, there's no need to use |
@UnknownNPC I tried using your method, I am getting the following error [error] [/xxx/build.sbt]:125: illegal start of simple expression |
@karthikkbaalaji ah, true. Try to remove comma char: |
Cool it worked, @UnknownNPC I have following setup: configuring this I can run it tests using itJacoco:cover Is there a way to prevent jacoco:cover to not run IT Tests? (Apologize if it's hijacking this thread) |
We are upgrading from Play 2.1.4 to Play 2.4.2 and we would like to start using jacoco code coverage for integration tests. I have added latest jacoco plugin to plugins.sbt (addSbtPlugin("de.johoop" % "jacoco4sbt" % "2.1.6")) and then defined itJacoco in build.scala (itJacoco.settings) as instructed in https://github.com/sbt/jacoco4sbt/wiki.
Now as I try to compile my project, I get these errors below. If I remove the itJacoco setting from build.scala, then my project compiles ok. Jacoco for unit tests is working ok, just this itJacoco is giving me a slight headache. Can you please help?
Stack trace below:
References to undefined settings:
The text was updated successfully, but these errors were encountered: