Skip to content

Commit

Permalink
Add preliminary coverage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jan 8, 2025
1 parent 2117e6d commit 113ccf1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.precomp/
/Wasm-Emitter-*
*.rakucov
5 changes: 4 additions & 1 deletion run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ sub test-dir($dir) {
test-dir("t");
test-dir($_) for dir("t", :test({ !.starts-with(".") && "t/$_".IO.d})).map(*.Str).sort;
test-dir("xt") if $author && "xt".IO.e;
install if $install;
if $install {
install;
++$done;
}

if @failed {
say "\nFAILED: {+@failed} of $done:";
Expand Down
13 changes: 13 additions & 0 deletions xt/coverage.rakutest
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use Test::Coverage;

todo "only a very small portion of this dist appears to be tested";
coverage-at-least 75;

todo "only a very small portion of this dist appears to be tested";
uncovered-at-most 1;

source-with-coverage;

report;

# vim: expandtab shiftwidth=4

0 comments on commit 113ccf1

Please sign in to comment.