oxc/tasks/coverage
underfin 64c4b825f1
chore: improve sourcemap visualizer (#2886)
The pr intend to improve `SourcemapVisualizer` log mapping.

- add the mapping for last token to final position of source
- fix token mapping
2024-04-03 10:45:00 +08:00
..
misc fix(parser): fix failed to parse JSXChild after JSXEmptyExpression (#2726) 2024-03-15 13:39:20 +08:00
src feat: add oxc sourcemap crate (#2825) 2024-03-28 19:36:38 +08:00
Cargo.toml feat: add oxc sourcemap crate (#2825) 2024-03-28 19:36:38 +08:00
codegen_babel.snap chore: update snapshots (#2817) 2024-03-26 11:53:26 +08:00
codegen_misc.snap fix(parser): fix failed to parse JSXChild after JSXEmptyExpression (#2726) 2024-03-15 13:39:20 +08:00
codegen_runtime_test262.snap fix(codegen): when async is on the left-hand side of a for-of, wrap it in parentheses (#2407) 2024-02-13 22:42:23 +08:00
codegen_sourcemap.snap chore: improve sourcemap visualizer (#2886) 2024-04-03 10:45:00 +08:00
codegen_test262.snap feat(Codegen): Improve codegen (#2460) 2024-02-21 14:41:57 +08:00
codegen_typescript.snap feat(Codegen): Improve codegen (#2460) 2024-02-21 14:41:57 +08:00
minifier_babel.snap chore: update snapshots 2023-11-28 16:27:10 +08:00
minifier_test262.snap chore: update snapshots 2024-01-22 19:16:09 +08:00
parser_babel.snap chore: update snapshots (#2817) 2024-03-26 11:53:26 +08:00
parser_misc.snap fix(parser): fix failed to parse JSXChild after JSXEmptyExpression (#2726) 2024-03-15 13:39:20 +08:00
parser_test262.snap chore(parser): make sure all span.end >= span.start (#2681) 2024-03-11 19:49:51 +08:00
parser_typescript.snap fix(parser): remove all duplicated comments in trivia builder (#2689) 2024-03-12 17:51:22 +08:00
prettier_babel.snap chore: update snapshots (#2817) 2024-03-26 11:53:26 +08:00
prettier_misc.snap fix(parser): fix failed to parse JSXChild after JSXEmptyExpression (#2726) 2024-03-15 13:39:20 +08:00
prettier_test262.snap fix(prettier): print bare import (#2633) 2024-03-07 14:03:20 +08:00
prettier_typescript.snap feat(prettier/ts): better conformance (#2721) 2024-03-20 18:59:49 +08:00
README.md

Coverage

The parser is tested against test262, babel and TypeScript for conformance.

Note: tests against regexp are disabled for now.

Clone the test files beforehand:

git submodule update --init

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'