Skip to content

Instantly share code, notes, and snippets.

@mcknasty
Last active February 16, 2023 01:35
Show Gist options
  • Save mcknasty/0ebf3c76634b17f9f15e775191925374 to your computer and use it in GitHub Desktop.
Save mcknasty/0ebf3c76634b17f9f15e775191925374 to your computer and use it in GitHub Desktop.
Cli Builds -- [ TimeStamp: 2023-02-15 20:35:30 237802055 ]
> c8@7.12.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 (872ms)
✔ supports externally set NODE_V8_COVERAGE (806ms)
✔ merges reports from subprocesses together (466ms)
✔ allows relative files to be included (592ms)
✔ exits with 1 when report output fails (470ms)
✔ should allow for files outside of cwd (359ms)
✔ should allow for multiple overrides of src location for --all (412ms)
✔ cobertura report escapes special characters (494ms)
✔ collects coverage for script with shebang (568ms)
check-coverage
✔ exits with 0 if coverage within threshold (231ms)
✔ exits with 1 if coverage is below threshold (230ms)
✔ allows threshold to be applied on per-file basis (237ms)
✔ allows --check-coverage when executing script (804ms)
✔ --100 (762ms)
✔ check-coverage command with --100 (208ms)
report
✔ generates report from existing temporary files (256ms)
✔ supports --check-coverage, when generating reports (260ms)
ESM Modules
✔ collects coverage for ESM modules (326ms)
/* c8 ignore next */
✔ ignores lines with special comment (321ms)
✔ does not incorrectly mark previous branch as uncovered (see #254) (302ms)
/* c8 ignore start/stop */
✔ ignores lines with special comment (311ms)
source-maps
TypeScript
✔ remaps branches (354ms)
✔ remaps classes (356ms)
UglifyJS
✔ remaps branches (350ms)
✔ remaps classes (360ms)
nyc
✔ remaps branches (390ms)
✔ remaps classes (379ms)
rollup
✔ remaps branches (351ms)
✔ remaps classes (346ms)
ts-node
✔ reads source-map from cache, and applies to coverage (3198ms)
✔ does not attempt to load source map URLs that aren't (352ms)
--all
✔ reports coverage for unloaded js files as 0 for line, branch and function (830ms)
✔ reports coverage for unloaded transpiled ts files as 0 for line, branch and function (785ms)
✔ reports coverage for unloaded ts files as 0 for line, branch and function when using ts-node (3911ms)
✔ should allow for --all to be used in conjunction with --check-coverage (801ms)
✔ should allow for --all to be used with the check-coverage command (2 invocations) (1618ms)
report
✔ supports reporting on directories outside cwd (243ms)
✔ supports reporting on single directories outside cwd (211ms)
--exclude-after-remap
✔ applies exclude rules after source-maps are applied (508ms)
--extension
✔ includes coverage when extensions specified (917ms)
✔ includes coverage when extensions specified with --all (1081ms)
c8 on Node.js < 10
✔ skip coverage (185ms)
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
report
✔ cause Report._loadReports to throw an error and catch it
✔ cause Report._normalizeProcessCov to throw an error and catch it
source-map-from-file
✔ should parse source maps from compiled targets
✔ should handle extra whitespace characters
✔ should support base64 encoded inline source maps
55 passing (29s)
--------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
--------------------------|---------|----------|---------|---------|-------------------
All files | 98.11 | 91.4 | 100 | 98.11 |
bin | 96.15 | 100 | 100 | 96.15 |
c8.js | 96.15 | 100 | 100 | 96.15 | 50-51
lib | 97.96 | 89.58 | 100 | 97.96 |
is-cjs-esm-bridge.js | 90 | 62.5 | 100 | 90 | 9
parse-args.js | 98.16 | 75 | 100 | 98.16 | 159-160,195-196
report.js | 100 | 100 | 100 | 100 |
source-map-from-file.js | 91 | 71.42 | 100 | 91 | 74-76,91-93,95-97
lib/commands | 100 | 95.45 | 100 | 100 |
check-coverage.js | 100 | 92.85 | 100 | 100 | 26
report.js | 100 | 100 | 100 | 100 |
--------------------------|---------|----------|---------|---------|-------------------
> c8@7.12.0 posttest
> standard
> c8@7.12.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 (850ms)
✔ supports externally set NODE_V8_COVERAGE (753ms)
✔ merges reports from subprocesses together (352ms)
✔ allows relative files to be included (486ms)
✔ exits with 1 when report output fails (421ms)
✔ should allow for files outside of cwd (326ms)
✔ should allow for multiple overrides of src location for --all (413ms)
✔ cobertura report escapes special characters (328ms)
✔ collects coverage for script with shebang (348ms)
check-coverage
✔ exits with 0 if coverage within threshold (179ms)
✔ exits with 1 if coverage is below threshold (200ms)
✔ allows threshold to be applied on per-file basis (211ms)
✔ allows --check-coverage when executing script (842ms)
✔ --100 (862ms)
✔ check-coverage command with --100 (353ms)
report
✔ generates report from existing temporary files (552ms)
✔ supports --check-coverage, when generating reports (595ms)
ESM Modules
✔ collects coverage for ESM modules (711ms)
/* c8 ignore next */
✔ ignores lines with special comment (499ms)
✔ does not incorrectly mark previous branch as uncovered (see #254) (441ms)
/* c8 ignore start/stop */
✔ ignores lines with special comment (585ms)
source-maps
TypeScript
✔ remaps branches (670ms)
✔ remaps classes (468ms)
UglifyJS
✔ remaps branches (402ms)
✔ remaps classes (674ms)
nyc
✔ remaps branches (477ms)
✔ remaps classes (407ms)
rollup
✔ remaps branches (379ms)
✔ remaps classes (369ms)
ts-node
✔ reads source-map from cache, and applies to coverage (3284ms)
✔ does not attempt to load source map URLs that aren't (405ms)
--all
✔ reports coverage for unloaded js files as 0 for line, branch and function (883ms)
✔ reports coverage for unloaded transpiled ts files as 0 for line, branch and function (772ms)
✔ reports coverage for unloaded ts files as 0 for line, branch and function when using ts-node (3845ms)
✔ should allow for --all to be used in conjunction with --check-coverage (779ms)
✔ should allow for --all to be used with the check-coverage command (2 invocations) (1449ms)
report
✔ supports reporting on directories outside cwd (203ms)
✔ supports reporting on single directories outside cwd (195ms)
--exclude-after-remap
✔ applies exclude rules after source-maps are applied (430ms)
--extension
✔ includes coverage when extensions specified (1169ms)
✔ includes coverage when extensions specified with --all (1371ms)
c8 on Node.js < 10
✔ skip coverage (298ms)
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
report
✔ cause Report._loadReports to throw an error and catch it (56ms)
✔ cause Report._normalizeProcessCov to throw an error and catch it
source-map-from-file
✔ should parse source maps from compiled targets
✔ should handle extra whitespace characters
✔ should support base64 encoded inline source maps
55 passing (32s)
--------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
--------------------------|---------|----------|---------|---------|-------------------
All files | 98.11 | 91.4 | 100 | 98.11 |
bin | 96.15 | 100 | 100 | 96.15 |
c8.js | 96.15 | 100 | 100 | 96.15 | 50-51
lib | 97.96 | 89.58 | 100 | 97.96 |
is-cjs-esm-bridge.js | 90 | 62.5 | 100 | 90 | 9
parse-args.js | 98.16 | 75 | 100 | 98.16 | 159-160,195-196
report.js | 100 | 100 | 100 | 100 |
source-map-from-file.js | 91 | 71.42 | 100 | 91 | 74-76,91-93,95-97
lib/commands | 100 | 95.45 | 100 | 100 |
check-coverage.js | 100 | 92.85 | 100 | 100 | 26
report.js | 100 | 100 | 100 | 100 |
--------------------------|---------|----------|---------|---------|-------------------
> c8@7.12.0 posttest
> standard
> c8@7.12.0 test:snap
> cross-env CHAI_JEST_SNAPSHOT_UPDATE_ALL=true npm test
> c8@7.12.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 (838ms)
✔ supports externally set NODE_V8_COVERAGE (746ms)
✔ merges reports from subprocesses together (378ms)
✔ allows relative files to be included (515ms)
✔ exits with 1 when report output fails (534ms)
✔ should allow for files outside of cwd (368ms)
✔ should allow for multiple overrides of src location for --all (403ms)
✔ cobertura report escapes special characters (389ms)
✔ collects coverage for script with shebang (382ms)
check-coverage
✔ exits with 0 if coverage within threshold (198ms)
✔ exits with 1 if coverage is below threshold (212ms)
✔ allows threshold to be applied on per-file basis (214ms)
✔ allows --check-coverage when executing script (786ms)
✔ --100 (748ms)
✔ check-coverage command with --100 (183ms)
report
✔ generates report from existing temporary files (222ms)
✔ supports --check-coverage, when generating reports (234ms)
ESM Modules
✔ collects coverage for ESM modules (313ms)
/* c8 ignore next */
✔ ignores lines with special comment (305ms)
✔ does not incorrectly mark previous branch as uncovered (see #254) (306ms)
/* c8 ignore start/stop */
✔ ignores lines with special comment (320ms)
source-maps
TypeScript
✔ remaps branches (336ms)
✔ remaps classes (320ms)
UglifyJS
✔ remaps branches (348ms)
✔ remaps classes (347ms)
nyc
✔ remaps branches (372ms)
✔ remaps classes (341ms)
rollup
✔ remaps branches (333ms)
✔ remaps classes (331ms)
ts-node
✔ reads source-map from cache, and applies to coverage (3109ms)
✔ does not attempt to load source map URLs that aren't (352ms)
--all
✔ reports coverage for unloaded js files as 0 for line, branch and function (750ms)
✔ reports coverage for unloaded transpiled ts files as 0 for line, branch and function (717ms)
✔ reports coverage for unloaded ts files as 0 for line, branch and function when using ts-node (3627ms)
✔ should allow for --all to be used in conjunction with --check-coverage (771ms)
✔ should allow for --all to be used with the check-coverage command (2 invocations) (2341ms)
report
✔ supports reporting on directories outside cwd (257ms)
✔ supports reporting on single directories outside cwd (251ms)
--exclude-after-remap
✔ applies exclude rules after source-maps are applied (393ms)
--extension
✔ includes coverage when extensions specified (822ms)
✔ includes coverage when extensions specified with --all (990ms)
c8 on Node.js < 10
✔ skip coverage (160ms)
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
report
✔ cause Report._loadReports to throw an error and catch it
✔ cause Report._normalizeProcessCov to throw an error and catch it
source-map-from-file
✔ should parse source maps from compiled targets
✔ should handle extra whitespace characters
✔ should support base64 encoded inline source maps
55 passing (28s)
--------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
--------------------------|---------|----------|---------|---------|-------------------
All files | 98.11 | 91.4 | 100 | 98.11 |
bin | 96.15 | 100 | 100 | 96.15 |
c8.js | 96.15 | 100 | 100 | 96.15 | 50-51
lib | 97.96 | 89.58 | 100 | 97.96 |
is-cjs-esm-bridge.js | 90 | 62.5 | 100 | 90 | 9
parse-args.js | 98.16 | 75 | 100 | 98.16 | 159-160,195-196
report.js | 100 | 100 | 100 | 100 |
source-map-from-file.js | 91 | 71.42 | 100 | 91 | 74-76,91-93,95-97
lib/commands | 100 | 95.45 | 100 | 100 |
check-coverage.js | 100 | 92.85 | 100 | 100 | 26
report.js | 100 | 100 | 100 | 100 |
--------------------------|---------|----------|---------|---------|-------------------
> c8@7.12.0 posttest
> standard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment