Reputation: 3
I have a batch job developed in scala. I am triggering the job with a shell script and would like to measure the code coverage for the job. The job is triggered after build creation.
How to the start scoverage after this job?
Upvotes: 0
Views: 104
Reputation: 2892
You can add below command in shell script to execute test and measure coverage:
sbt clean coverage test coverageReport
You can add below command to check if coverage
is above minimum in build.sbt
:
coverageMinimum := 80
coverageFailOnMinimum := true
Upvotes: -1