Scala Code Coverage not working following readme instructions

901 views
Skip to first unread message

su...@wealthminder.com

unread,
Sep 7, 2015, 10:51:36 AM9/7/15
to Scala code coverage tool
Hi,
I followed all the steps given at - https://github.com/scoverage/sbt-scoverage , but I am unable to generate coverage reports.

I added following lines to /project/plugins.sbt

resolvers += Resolver.url("scoverage-bintray", url("https://dl.bintray.com/sksamuel/sbt-plugins/"))(Resolver.ivyStylePatterns)

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.3.1")


build.properties has only 1 line for sbt.version 
sbt.version=0.13.0

When I run the command - sbt coverage test, I get following error


[error] Not a valid command: coverage
[error] Not a valid project ID: coverage
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: coverage (similar: homepage, package, compilerCache)
[error] coverage
[error]         ^


Could anyone please help me here? What else do I have to get the coverage Report?

Where should I put - coverageEnabled := true ?

Sunit

Message has been deleted

alms...@gmail.com

unread,
Apr 22, 2016, 6:58:36 AM4/22/16
to Scala code coverage tool
+ 1

Grzegorz Slowikowski

unread,
Apr 22, 2016, 7:28:37 AM4/22/16
to Scala code coverage tool
Hi

Upgrade SBR version at least to 0.13.5 (latest is 0.13.11).

Regards
Grzegorz Slowikowski

Andrew Sempebwa

unread,
Apr 22, 2016, 7:52:11 AM4/22/16
to Scala code coverage tool
Thank you :)

Grzegorz Slowikowski

unread,
Apr 22, 2016, 8:27:48 AM4/22/16
to Andrew Sempebwa, Scala code coverage tool
SBT, not SBR :)

2016-04-22 13:52 GMT+02:00 Andrew Sempebwa <alms...@gmail.com>:
Thank you :)

--
Scoverage, Scala code coverage tool
Github : https://github.com/scoverage
Discussion : https://groups.google.com/group/scala-code-coverage-tool
---
You received this message because you are subscribed to the Google Groups "Scala code coverage tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-code-coverag...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kyoce...@gmail.com

unread,
Sep 12, 2017, 4:39:00 AM9/12/17
to Scala code coverage tool
Hello,

I still got this error eventhough my sbt version is 0.13.16.
Do you have any idea, im still getting this error?

By the way, I also followed the instruction in the ReadMe.

However, when I add "coverageEnabled := true" ,it is not being recognized? or should i say highlighted in red.
Please help


On Friday, April 22, 2016 at 8:27:48 PM UTC+8, Grzegorz Slowikowski wrote:
SBT, not SBR :)

2016-04-22 13:52 GMT+02:00 Andrew Sempebwa <alms...@gmail.com>:
Thank you :)

--
Scoverage, Scala code coverage tool
Github : https://github.com/scoverage
Discussion : https://groups.google.com/group/scala-code-coverage-tool
---
You received this message because you are subscribed to the Google Groups "Scala code coverage tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-code-coverage-tool+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages