SIGN IN SIGN UP

opa test: handle code coverage percentage

Compute the code coverage percentage of each file and the overall one.

Allow the user to specify a coverage threshold when running the `opa test`
command. The program execution will fail when the global file coverage
doesn't respect the required threshold.

`opa test` will exit with error code 2 when the coverage doesn't meet
the specified threshold.

Fixes issue #1029.

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
F
Flavio Castelli committed
a915f1a298cd55e53ce1fadc85ca6f26adf1085b
Parent: 7436bb4
Committed by Torin Sandall <torinsandall@gmail.com> on 10/31/2018, 5:45:43 PM