aboutsummaryrefslogtreecommitdiff
path: root/src/bunfig.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bunfig.zig')
-rw-r--r--src/bunfig.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bunfig.zig b/src/bunfig.zig
index e1f1ca4b0..050c603de 100644
--- a/src/bunfig.zig
+++ b/src/bunfig.zig
@@ -253,6 +253,7 @@ pub const Bunfig = struct {
this.ctx.test_options.coverage.fractions.functions = expr.data.e_number.value;
this.ctx.test_options.coverage.fractions.lines = expr.data.e_number.value;
this.ctx.test_options.coverage.fractions.stmts = expr.data.e_number.value;
+ this.ctx.test_options.coverage.fail_on_low_coverage = true;
break :outer;
}
@@ -260,16 +261,19 @@ pub const Bunfig = struct {
if (expr.get("functions")) |functions| {
try this.expect(functions, .e_number);
this.ctx.test_options.coverage.fractions.functions = functions.data.e_number.value;
+ this.ctx.test_options.coverage.fail_on_low_coverage = true;
}
if (expr.get("lines")) |lines| {
try this.expect(lines, .e_number);
this.ctx.test_options.coverage.fractions.lines = lines.data.e_number.value;
+ this.ctx.test_options.coverage.fail_on_low_coverage = true;
}
if (expr.get("statements")) |stmts| {
try this.expect(stmts, .e_number);
this.ctx.test_options.coverage.fractions.stmts = stmts.data.e_number.value;
+ this.ctx.test_options.coverage.fail_on_low_coverage = true;
}
}