February 2018
Intermediate to advanced
552 pages
13h 46m
English
If you want to use this tool in our Scala-based SBT projects, add the following line of code in our project's plugins.sbt:
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")
The sbt-scoverage is an SBT plugin that uses the scoverage Code Coverage library and performs checks and generates Code Coverage reports for us.
Once we are done with this step, then we can use the following command to check the project Code Coverage percentage:
$ sbt clean coverage test
We can find all the available plugins of the scoverage library at https://github.com/scoverage and the sbt-scoverage plugin's source code at https://github.com/scoverage/sbt-scoverage.
That's all about unit testing our Scala Reactive Programming applications. ...
Read now
Unlock full access