Skip to content

Instantly share code, notes, and snippets.

@mcknasty
Created January 16, 2024 20:03
Show Gist options
  • Save mcknasty/a937aa34d0337500f8d5be6c5c268e79 to your computer and use it in GitHub Desktop.
Save mcknasty/a937aa34d0337500f8d5be6c5c268e79 to your computer and use it in GitHub Desktop.
Cli Builds -- [ TimeStamp: 2024-01-16 15:03:24 343325808 ]
> c8@9.1.0 test
> cross-env TS_NODE_SKIP_PROJECT=true node ./bin/c8.js mocha --timeout=10000 ./test/*.js
c8
✔ reports coverage for script that exits normally (806ms)
✔ supports externally set NODE_V8_COVERAGE (709ms)
✔ merges reports from subprocesses together (322ms)
✔ allows relative files to be included (364ms)
✔ exits with 1 when report output fails (363ms)
✔ should allow for files outside of cwd (296ms)
✔ should allow for multiple overrides of src location for --all (336ms)
✔ cobertura report escapes special characters (299ms)
✔ collects coverage for script with shebang (306ms)
check-coverage
✔ exits with 0 if coverage within threshold (197ms)
✔ exits with 1 if coverage is below threshold (215ms)
✔ allows threshold to be applied on per-file basis (239ms)
✔ allows --check-coverage when executing script (766ms)
✔ --100 (723ms)
✔ check-coverage command with --100 (201ms)
report
✔ generates report from existing temporary files (207ms)
✔ supports --check-coverage, when generating reports (214ms)
ESM Modules
✔ collects coverage for ESM modules (254ms)
/* c8 ignore next */
✔ ignores lines with special comment (247ms)
✔ does not incorrectly mark previous branch as uncovered (see #254) (240ms)
/* c8 ignore start/stop */
✔ ignores lines with special comment (286ms)
source-maps
✔ does not attempt to load source map URLs that aren't (294ms)
TypeScript
✔ remaps branches (314ms)
✔ remaps classes (317ms)
UglifyJS
✔ remaps branches (314ms)
✔ remaps classes (316ms)
nyc
✔ remaps branches (313ms)
✔ remaps classes (316ms)
rollup
✔ remaps branches (312ms)
✔ remaps classes (315ms)
ts-node
✔ reads source-map from cache, and applies to coverage (2310ms)
--all
✔ reports coverage for unloaded js files as 0 for line, branch and function (850ms)
✔ reports coverage for unloaded transpiled ts files as 0 for line, branch and function (763ms)
✔ reports coverage for unloaded ts files as 0 for line, branch and function when using ts-node (2826ms)
✔ should allow for --all to be used in conjunction with --check-coverage (829ms)
✔ should allow for --all to be used with the check-coverage command (2 invocations) (1596ms)
report
✔ supports reporting on directories outside cwd (173ms)
✔ supports reporting on single directories outside cwd (164ms)
--exclude-after-remap
✔ applies exclude rules after source-maps are applied (306ms)
--extension
✔ includes coverage when extensions specified (786ms)
✔ includes coverage when extensions specified with --all (2453ms)
c8 mergeAsync
✔ reports coverage for script that exits normally (728ms)
✔ supports externally set NODE_V8_COVERAGE (710ms)
✔ merges reports from subprocesses together (341ms)
✔ allows relative files to be included (389ms)
✔ exits with 1 when report output fails (541ms)
✔ should allow for files outside of cwd (219ms)
✔ should allow for multiple overrides of src location for --all (241ms)
✔ cobertura report escapes special characters (213ms)
✔ collects coverage for script with shebang (227ms)
check-coverage
✔ exits with 0 if coverage within threshold (197ms)
✔ exits with 1 if coverage is below threshold (250ms)
✔ allows threshold to be applied on per-file basis (201ms)
✔ allows --check-coverage when executing script (742ms)
✔ --100 (727ms)
✔ check-coverage command with --100 (199ms)
report
✔ generates report from existing temporary files (212ms)
✔ supports --check-coverage, when generating reports (227ms)
ESM Modules
✔ collects coverage for ESM modules (245ms)
/* c8 ignore next */
✔ ignores lines with special comment (239ms)
✔ does not incorrectly mark previous branch as uncovered (see #254) (234ms)
/* c8 ignore start/stop */
✔ ignores lines with special comment (292ms)
source-maps
✔ does not attempt to load source map URLs that aren't (275ms)
TypeScript
✔ remaps branches (324ms)
✔ remaps classes (326ms)
UglifyJS
✔ remaps branches (333ms)
✔ remaps classes (333ms)
nyc
✔ remaps branches (333ms)
✔ remaps classes (337ms)
rollup
✔ remaps branches (330ms)
✔ remaps classes (333ms)
ts-node
✔ reads source-map from cache, and applies to coverage (2436ms)
--all
✔ reports coverage for unloaded js files as 0 for line, branch and function (931ms)
✔ reports coverage for unloaded transpiled ts files as 0 for line, branch and function (882ms)
✔ reports coverage for unloaded ts files as 0 for line, branch and function when using ts-node (2944ms)
✔ should allow for --all to be used in conjunction with --check-coverage (913ms)
✔ should allow for --all to be used with the check-coverage command (2 invocations) (1634ms)
report
✔ supports reporting on directories outside cwd (172ms)
✔ supports reporting on single directories outside cwd (163ms)
--exclude-after-remap
✔ applies exclude rules after source-maps are applied (311ms)
--extension
✔ includes coverage when extensions specified (795ms)
✔ includes coverage when extensions specified with --all (969ms)
parse-args
hideInstrumenteeArgs
✔ hides arguments passed to instrumented app
hideInstrumenterArgs
✔ hides arguments passed to c8 bin (38ms)
with NODE_V8_COVERAGE already set
✔ should not override it
--config
✔ should resolve to .nycrc at cwd
✔ should use config file specified in --config
✔ should have -c as an alias
✔ should respect options on the command line over config file
✔ should allow config files to extend each other
✔ should allow relative path reports directories
✔ should allow relative path temporary directories
✔ should allow absolute path reports directories
✔ should allow absolute path temporary directories
--merge-async
✔ should default to false
✔ should set to true when flag exists
source-map-from-file
✔ should parse source maps from compiled targets
✔ should handle extra whitespace characters
✔ should support base64 encoded inline source maps
✔ should throw error if source map isn't JSON format
✔ should throw error if url doesn't have a json content type
101 passing (49s)
--------------------------|---------|----------|---------|---------|--------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
--------------------------|---------|----------|---------|---------|--------------------------------
All files | 98.2 | 91.26 | 100 | 98.2 |
bin | 95.34 | 100 | 100 | 95.34 |
c8.js | 95.34 | 100 | 100 | 95.34 | 41-42
lib | 98.09 | 89.58 | 100 | 98.09 |
parse-args.js | 98.21 | 75 | 100 | 98.21 | 165-166,201-202
report.js | 97.51 | 91.3 | 100 | 97.51 | ...121,233-234,317-318,352-354
source-map-from-file.js | 100 | 93.33 | 100 | 100 | 92
lib/commands | 100 | 95.45 | 100 | 100 |
check-coverage.js | 100 | 92.85 | 100 | 100 | 26
report.js | 100 | 100 | 100 | 100 |
--------------------------|---------|----------|---------|---------|--------------------------------
> c8@9.1.0 posttest
> standard
> c8@9.1.0 test
> cross-env TS_NODE_SKIP_PROJECT=true node ./bin/c8.js mocha --timeout=1000000 ./test/*.js
c8
✔ reports coverage for script that exits normally (845ms)
✔ supports externally set NODE_V8_COVERAGE (735ms)
✔ merges reports from subprocesses together (343ms)
✔ allows relative files to be included (411ms)
✔ exits with 1 when report output fails (438ms)
✔ should allow for files outside of cwd (365ms)
✔ should allow for multiple overrides of src location for --all (396ms)
✔ cobertura report escapes special characters (341ms)
✔ collects coverage for script with shebang (361ms)
check-coverage
✔ exits with 0 if coverage within threshold (234ms)
✔ exits with 1 if coverage is below threshold (244ms)
✔ allows threshold to be applied on per-file basis (260ms)
✔ allows --check-coverage when executing script (858ms)
✔ --100 (914ms)
✔ check-coverage command with --100 (286ms)
report
✔ generates report from existing temporary files (241ms)
✔ supports --check-coverage, when generating reports (255ms)
ESM Modules
✔ collects coverage for ESM modules (395ms)
/* c8 ignore next */
✔ ignores lines with special comment (436ms)
✔ does not incorrectly mark previous branch as uncovered (see #254) (343ms)
/* c8 ignore start/stop */
✔ ignores lines with special comment (365ms)
source-maps
✔ does not attempt to load source map URLs that aren't (348ms)
TypeScript
✔ remaps branches (358ms)
✔ remaps classes (387ms)
UglifyJS
✔ remaps branches (352ms)
✔ remaps classes (351ms)
nyc
✔ remaps branches (341ms)
✔ remaps classes (336ms)
rollup
✔ remaps branches (354ms)
✔ remaps classes (334ms)
ts-node
✔ reads source-map from cache, and applies to coverage (2511ms)
--all
✔ reports coverage for unloaded js files as 0 for line, branch and function (890ms)
✔ reports coverage for unloaded transpiled ts files as 0 for line, branch and function (803ms)
✔ reports coverage for unloaded ts files as 0 for line, branch and function when using ts-node (3070ms)
✔ should allow for --all to be used in conjunction with --check-coverage (1001ms)
✔ should allow for --all to be used with the check-coverage command (2 invocations) (1948ms)
report
✔ supports reporting on directories outside cwd (248ms)
✔ supports reporting on single directories outside cwd (201ms)
--exclude-after-remap
✔ applies exclude rules after source-maps are applied (346ms)
--extension
✔ includes coverage when extensions specified (809ms)
✔ includes coverage when extensions specified with --all (1146ms)
c8 mergeAsync
✔ reports coverage for script that exits normally (807ms)
✔ supports externally set NODE_V8_COVERAGE (767ms)
✔ merges reports from subprocesses together (409ms)
✔ allows relative files to be included (430ms)
✔ exits with 1 when report output fails (747ms)
✔ should allow for files outside of cwd (328ms)
✔ should allow for multiple overrides of src location for --all (351ms)
✔ cobertura report escapes special characters (352ms)
✔ collects coverage for script with shebang (617ms)
check-coverage
✔ exits with 0 if coverage within threshold (209ms)
✔ exits with 1 if coverage is below threshold (228ms)
✔ allows threshold to be applied on per-file basis (254ms)
✔ allows --check-coverage when executing script (788ms)
✔ --100 (740ms)
✔ check-coverage command with --100 (224ms)
report
✔ generates report from existing temporary files (221ms)
✔ supports --check-coverage, when generating reports (229ms)
ESM Modules
✔ collects coverage for ESM modules (301ms)
/* c8 ignore next */
✔ ignores lines with special comment (299ms)
✔ does not incorrectly mark previous branch as uncovered (see #254) (277ms)
/* c8 ignore start/stop */
✔ ignores lines with special comment (326ms)
source-maps
✔ does not attempt to load source map URLs that aren't (308ms)
TypeScript
✔ remaps branches (347ms)
✔ remaps classes (339ms)
UglifyJS
✔ remaps branches (338ms)
✔ remaps classes (372ms)
nyc
✔ remaps branches (371ms)
✔ remaps classes (358ms)
rollup
✔ remaps branches (351ms)
✔ remaps classes (359ms)
ts-node
✔ reads source-map from cache, and applies to coverage (10325ms)
--all
✔ reports coverage for unloaded js files as 0 for line, branch and function (2012ms)
✔ reports coverage for unloaded transpiled ts files as 0 for line, branch and function (600ms)
✔ reports coverage for unloaded ts files as 0 for line, branch and function when using ts-node (2799ms)
✔ should allow for --all to be used in conjunction with --check-coverage (615ms)
✔ should allow for --all to be used with the check-coverage command (2 invocations) (1212ms)
report
✔ supports reporting on directories outside cwd (151ms)
✔ supports reporting on single directories outside cwd (153ms)
--exclude-after-remap
✔ applies exclude rules after source-maps are applied (307ms)
--extension
✔ includes coverage when extensions specified (794ms)
✔ includes coverage when extensions specified with --all (1006ms)
parse-args
hideInstrumenteeArgs
✔ hides arguments passed to instrumented app
hideInstrumenterArgs
✔ hides arguments passed to c8 bin (44ms)
with NODE_V8_COVERAGE already set
✔ should not override it
--config
✔ should resolve to .nycrc at cwd
✔ should use config file specified in --config
✔ should have -c as an alias
✔ should respect options on the command line over config file
✔ should allow config files to extend each other
✔ should allow relative path reports directories
✔ should allow relative path temporary directories
✔ should allow absolute path reports directories
✔ should allow absolute path temporary directories
--merge-async
✔ should default to false
✔ should set to true when flag exists
source-map-from-file
✔ should parse source maps from compiled targets
✔ should handle extra whitespace characters
✔ should support base64 encoded inline source maps
✔ should throw error if source map isn't JSON format
✔ should throw error if url doesn't have a json content type
101 passing (1m)
--------------------------|---------|----------|---------|---------|--------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
--------------------------|---------|----------|---------|---------|--------------------------------
All files | 98.2 | 91.26 | 100 | 98.2 |
bin | 95.34 | 100 | 100 | 95.34 |
c8.js | 95.34 | 100 | 100 | 95.34 | 41-42
lib | 98.09 | 89.58 | 100 | 98.09 |
parse-args.js | 98.21 | 75 | 100 | 98.21 | 165-166,201-202
report.js | 97.51 | 91.3 | 100 | 97.51 | ...121,233-234,317-318,352-354
source-map-from-file.js | 100 | 93.33 | 100 | 100 | 92
lib/commands | 100 | 95.45 | 100 | 100 |
check-coverage.js | 100 | 92.85 | 100 | 100 | 26
report.js | 100 | 100 | 100 | 100 |
--------------------------|---------|----------|---------|---------|--------------------------------
> c8@9.1.0 posttest
> standard
> c8@9.1.0 test:snap
> cross-env CHAI_JEST_SNAPSHOT_UPDATE_ALL=true npm test
> c8@9.1.0 test
> cross-env TS_NODE_SKIP_PROJECT=true node ./bin/c8.js mocha --timeout=1000000 ./test/*.js
c8
✔ reports coverage for script that exits normally (826ms)
✔ supports externally set NODE_V8_COVERAGE (788ms)
✔ merges reports from subprocesses together (507ms)
✔ allows relative files to be included (818ms)
✔ exits with 1 when report output fails (894ms)
✔ should allow for files outside of cwd (670ms)
✔ should allow for multiple overrides of src location for --all (466ms)
✔ cobertura report escapes special characters (341ms)
✔ collects coverage for script with shebang (386ms)
check-coverage
✔ exits with 0 if coverage within threshold (236ms)
✔ exits with 1 if coverage is below threshold (749ms)
✔ allows threshold to be applied on per-file basis (250ms)
✔ allows --check-coverage when executing script (803ms)
✔ --100 (747ms)
✔ check-coverage command with --100 (208ms)
report
✔ generates report from existing temporary files (227ms)
✔ supports --check-coverage, when generating reports (250ms)
ESM Modules
✔ collects coverage for ESM modules (316ms)
/* c8 ignore next */
✔ ignores lines with special comment (307ms)
✔ does not incorrectly mark previous branch as uncovered (see #254) (291ms)
/* c8 ignore start/stop */
✔ ignores lines with special comment (319ms)
source-maps
✔ does not attempt to load source map URLs that aren't (312ms)
TypeScript
✔ remaps branches (334ms)
✔ remaps classes (339ms)
UglifyJS
✔ remaps branches (344ms)
✔ remaps classes (339ms)
nyc
✔ remaps branches (396ms)
✔ remaps classes (368ms)
rollup
✔ remaps branches (355ms)
✔ remaps classes (351ms)
ts-node
✔ reads source-map from cache, and applies to coverage (2535ms)
--all
✔ reports coverage for unloaded js files as 0 for line, branch and function (942ms)
✔ reports coverage for unloaded transpiled ts files as 0 for line, branch and function (832ms)
✔ reports coverage for unloaded ts files as 0 for line, branch and function when using ts-node (2923ms)
✔ should allow for --all to be used in conjunction with --check-coverage (880ms)
✔ should allow for --all to be used with the check-coverage command (2 invocations) (1681ms)
report
✔ supports reporting on directories outside cwd (177ms)
✔ supports reporting on single directories outside cwd (173ms)
--exclude-after-remap
✔ applies exclude rules after source-maps are applied (321ms)
--extension
✔ includes coverage when extensions specified (803ms)
✔ includes coverage when extensions specified with --all (1020ms)
c8 mergeAsync
✔ reports coverage for script that exits normally (753ms)
✔ supports externally set NODE_V8_COVERAGE (717ms)
✔ merges reports from subprocesses together (380ms)
✔ allows relative files to be included (418ms)
✔ exits with 1 when report output fails (754ms)
✔ should allow for files outside of cwd (328ms)
✔ should allow for multiple overrides of src location for --all (374ms)
✔ cobertura report escapes special characters (328ms)
✔ collects coverage for script with shebang (333ms)
check-coverage
✔ exits with 0 if coverage within threshold (213ms)
✔ exits with 1 if coverage is below threshold (247ms)
✔ allows threshold to be applied on per-file basis (272ms)
✔ allows --check-coverage when executing script (806ms)
✔ --100 (789ms)
✔ check-coverage command with --100 (213ms)
report
✔ generates report from existing temporary files (217ms)
✔ supports --check-coverage, when generating reports (238ms)
ESM Modules
✔ collects coverage for ESM modules (304ms)
/* c8 ignore next */
✔ ignores lines with special comment (310ms)
✔ does not incorrectly mark previous branch as uncovered (see #254) (277ms)
/* c8 ignore start/stop */
✔ ignores lines with special comment (323ms)
source-maps
✔ does not attempt to load source map URLs that aren't (311ms)
TypeScript
✔ remaps branches (428ms)
✔ remaps classes (398ms)
UglifyJS
✔ remaps branches (369ms)
✔ remaps classes (406ms)
nyc
✔ remaps branches (343ms)
✔ remaps classes (348ms)
rollup
✔ remaps branches (344ms)
✔ remaps classes (358ms)
ts-node
✔ reads source-map from cache, and applies to coverage (3002ms)
--all
✔ reports coverage for unloaded js files as 0 for line, branch and function (1052ms)
✔ reports coverage for unloaded transpiled ts files as 0 for line, branch and function (1322ms)
✔ reports coverage for unloaded ts files as 0 for line, branch and function when using ts-node (23077ms)
✔ should allow for --all to be used in conjunction with --check-coverage (922ms)
✔ should allow for --all to be used with the check-coverage command (2 invocations) (1197ms)
report
✔ supports reporting on directories outside cwd (502ms)
✔ supports reporting on single directories outside cwd (120ms)
--exclude-after-remap
✔ applies exclude rules after source-maps are applied (241ms)
--extension
✔ includes coverage when extensions specified (734ms)
✔ includes coverage when extensions specified with --all (991ms)
parse-args
hideInstrumenteeArgs
✔ hides arguments passed to instrumented app
hideInstrumenterArgs
✔ hides arguments passed to c8 bin
with NODE_V8_COVERAGE already set
✔ should not override it
--config
✔ should resolve to .nycrc at cwd
✔ should use config file specified in --config
✔ should have -c as an alias
✔ should respect options on the command line over config file
✔ should allow config files to extend each other
✔ should allow relative path reports directories
✔ should allow relative path temporary directories
✔ should allow absolute path reports directories
✔ should allow absolute path temporary directories
--merge-async
✔ should default to false
✔ should set to true when flag exists
source-map-from-file
✔ should parse source maps from compiled targets
✔ should handle extra whitespace characters
✔ should support base64 encoded inline source maps
✔ should throw error if source map isn't JSON format
✔ should throw error if url doesn't have a json content type
101 passing (1m)
--------------------------|---------|----------|---------|---------|--------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
--------------------------|---------|----------|---------|---------|--------------------------------
All files | 98.2 | 91.26 | 100 | 98.2 |
bin | 95.34 | 100 | 100 | 95.34 |
c8.js | 95.34 | 100 | 100 | 95.34 | 41-42
lib | 98.09 | 89.58 | 100 | 98.09 |
parse-args.js | 98.21 | 75 | 100 | 98.21 | 165-166,201-202
report.js | 97.51 | 91.3 | 100 | 97.51 | ...121,233-234,317-318,352-354
source-map-from-file.js | 100 | 93.33 | 100 | 100 | 92
lib/commands | 100 | 95.45 | 100 | 100 |
check-coverage.js | 100 | 92.85 | 100 | 100 | 26
report.js | 100 | 100 | 100 | 100 |
--------------------------|---------|----------|---------|---------|--------------------------------
> c8@9.1.0 posttest
> standard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment