oxc/tasks/coverage
2023-04-16 21:32:00 +08:00
..
babel@6925ac555c feat(linter): implement isolated_declaration (#209) 2023-03-26 04:37:10 -07:00
src refactor(oxc_ast): change SourceType::with_ methods to return Self 2023-04-16 21:32:00 +08:00
test262@9704d7f22f feat(linter): implement isolated_declaration (#209) 2023-03-26 04:37:10 -07:00
typescript@7f292bf2a1 feat(linter): implement isolated_declaration (#209) 2023-03-26 04:37:10 -07:00
babel.snap refactor(linter,semantic): move syntax check from linter to semantic (#272) 2023-04-10 12:23:53 +08:00
Cargo.toml chore: rust taplo format 2023-04-15 14:14:11 +08:00
printer_babel.snap fix(coverage): remove jsx tests from babel printing tests 2023-04-15 13:22:09 +08:00
printer_test262.snap feat(coverage): add jsx printing tests (#279) 2023-04-15 12:31:37 +08:00
README.md chore(coverage): remove mention of git submodule update --remote in README 2023-04-01 10:57:25 +08:00
test262.snap refactor(linter,semantic): move syntax check from linter to semantic (#272) 2023-04-10 12:23:53 +08:00
typescript.snap chore(coverage): include conformance tests from the compiler directory 2023-04-15 17:28:25 +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 --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'