test(justfile): run the CLI and debugger tests outside the coverage set
Assisted-by: DeepSeek V4.1 Flash
This commit is contained in:
@@ -31,6 +31,13 @@ test:
|
||||
system(q{go}, q{test}, q{-count=1}, q{-timeout}, q{10m},
|
||||
q{-coverprofile}, q{coverage.out}, qw({{packages}})) == 0
|
||||
or die qq{the test suite failed\n};
|
||||
# The packages outside the coverage set carry tests of their own: the CLI's
|
||||
# exit codes and manual-page guard, and the debugger's architecture-neutral
|
||||
# units. They run without a profile, because a thin main and a ptrace-bound
|
||||
# package would drag the floor down rather than measure the product.
|
||||
system(q{go}, q{test}, q{-count=1}, q{-timeout}, q{10m},
|
||||
q{./cmd/...}, q{./debug/...}) == 0
|
||||
or die qq{the tests outside the coverage set failed\n};
|
||||
open(my $c, q{-|}, q{go}, q{tool}, q{cover}, q{-func=coverage.out}) or die qq{cover: $!};
|
||||
my $total;
|
||||
while (my $l = <$c>) { $total = $1 if $l =~ m{^total:\s+\S+\s+([0-9.]+)%} }
|
||||
|
||||
Reference in New Issue
Block a user