oxc/tasks/coverage
2023-03-09 01:27:14 -08:00
..
babel@c38bf12f01 feat(oxc_linter): implement eslint(no-mixed-operators) (#145) 2023-03-09 00:05:44 +08:00
src feat(linter): add infrastructure for handling early errors 2023-03-09 01:27:14 -08:00
test262@d216cc1972 feat(oxc_linter): implement eslint(no-mixed-operators) (#145) 2023-03-09 00:05:44 +08:00
typescript@8f40d5633f feat(oxc_linter): implement eslint(no-mixed-operators) (#145) 2023-03-09 00:05:44 +08:00
babel.snap chore(coverage): print negative tests; enable decorators; update to the latest remote 2023-03-07 23:37:00 +08:00
Cargo.toml feat(linter): add infrastructure for handling early errors 2023-03-09 01:27:14 -08:00
printer.snap perf(lexer): fine tune identifier checking with less redundant branches (#154) 2023-03-08 22:00:15 +08:00
README.md chore(coverage): print negative tests; enable decorators; update to the latest remote 2023-03-07 23:37:00 +08:00
test262.snap feat(linter): add infrastructure for handling early errors 2023-03-09 01:27:14 -08:00
typescript.snap perf(lexer): fine tune identifier checking with less redundant branches (#154) 2023-03-08 22:00:15 +08:00

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

For maintainers, update to the latest remote, run:

git submodule update --remote

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'