sri_ae
sri_ae

Reputation: 3

Getting Code coverage for scala based batch jobs

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

Answers (1)

mukesh210
mukesh210

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

Related Questions