Skip to content

Commit

Permalink
Add --coverage option to build scripts for tests (microsoft#54499)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton authored Jun 2, 2023
1 parent e8c7927 commit 913e556
Show file tree
Hide file tree
Showing 7 changed files with 448 additions and 21 deletions.
7 changes: 7 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"reporter": ["lcovonly", "cobertura"],
"src": "src",
"include": ["src/**", "built/local/**"],
"exclude": ["**/node_modules/**"],
"mergeAsync": true
}
2 changes: 2 additions & 0 deletions Herebyfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ export const runTests = task({
// task("runtests").flags = {
// "-t --tests=<regex>": "Pattern for tests to run.",
// " --failed": "Runs tests listed in '.failed-tests'.",
// " --coverage": "Generate test coverage using c8",
// "-r --reporter=<reporter>": "The mocha reporter to use.",
// "-i --break": "Runs tests in inspector mode (NodeJS 8 and later)",
// " --keepFailed": "Keep tests in .failed-tests even if they pass",
Expand Down Expand Up @@ -714,6 +715,7 @@ export const runTestsParallel = task({
});

// task("runtests-parallel").flags = {
// " --coverage": "Generate test coverage using c8",
// " --light": "Run tests in light mode (fewer verifications, but tests run faster).",
// " --keepFailed": "Keep tests in .failed-tests even if they pass.",
// " --dirty": "Run tests without first cleaning test output directories.",
Expand Down
Loading

0 comments on commit 913e556

Please sign in to comment.