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?
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?
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