oxc/tasks/coverage
Boshen f6752b482f
feat!(ast): make Trivias clonable by adding Arc (#3638)
This makes `Trivias` cloneable and stops us from using `Rc::new` and
`Rc::clone` everywhere.

`Trivias` is rarely cloned so an `Arc` should suffice.
2024-06-12 13:16:10 +08:00
..
misc fix(parser): parse const extends in arrow functions correctly (#3450) 2024-05-28 21:34:52 +08:00
src feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +08:00
Cargo.toml chore: update toml format 2024-05-21 22:15:47 +08:00
codegen_babel.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
codegen_misc.snap fix(parser): parse const extends in arrow functions correctly (#3450) 2024-05-28 21:34:52 +08:00
codegen_runtime_test262.snap chore(coverage): ignore eval related code in codegen runtime (#3628) 2024-06-11 15:23:36 +00:00
codegen_sourcemap.snap fix(codegen): print indentation before directive (#3512) 2024-06-05 16:32:12 +08:00
codegen_test262.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
codegen_typescript.snap chore(codegen): print typescript code for typescript files (#3515) 2024-06-03 10:05:08 +00:00
minifier_babel.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
minifier_test262.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
parser_babel.snap fix(parser): should parser error when function declaration has no name (#3461) 2024-05-30 19:58:50 +08:00
parser_misc.snap fix(parser): parse const extends in arrow functions correctly (#3450) 2024-05-28 21:34:52 +08:00
parser_test262.snap fix(parser): should parser error when function declaration has no name (#3461) 2024-05-30 19:58:50 +08:00
parser_typescript.snap refactor(coverage): use code without meta options in TypeScriptSuite (#3552) 2024-06-06 05:34:18 +00:00
prettier_babel.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
prettier_misc.snap fix(parser): parse const extends in arrow functions correctly (#3450) 2024-05-28 21:34:52 +08:00
prettier_test262.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
prettier_typescript.snap refactor(coverage): use code without meta options in TypeScriptSuite (#3552) 2024-06-06 05:34:18 +00:00
README.md feat(coverage): add --debug option for finding crash scene (#3622) 2024-06-11 07:10:02 +00:00
transformer_babel.snap feat(transformer/typescript): remove more typescript ast nodes (#3563) 2024-06-07 05:04:28 +00:00
transformer_misc.snap fix(parser): parse const extends in arrow functions correctly (#3450) 2024-05-28 21:34:52 +08:00
transformer_test262.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
transformer_typescript.snap feat(transformer/typescript): remove more typescript ast nodes (#3563) 2024-06-07 05:04:28 +00:00

Coverage

Tools are tested against test262, babel and TypeScript for conformance.

Clone the test repositories beforehand:

just submodules

Development

# full run
cargo coverage
cargo coverage js # for test262
cargo coverage babel # for babel
cargo coverage ts # for typescript

# run in watch
cargo watch -x 'coverage js'

# filter for a file path
cargo watch -x 'coverage js --filter filter-file-path'

# find crash scene by turning off rayon and print out the test cases in serial
cargo coverage -- --debug