oxc/tasks/coverage
2023-04-15 12:31:37 +08:00
..
babel@6925ac555c feat(linter): implement isolated_declaration (#209) 2023-03-26 04:37:10 -07:00
src feat(coverage): add jsx printing tests (#279) 2023-04-15 12:31:37 +08:00
test262@9704d7f22f feat(linter): implement isolated_declaration (#209) 2023-03-26 04:37:10 -07:00
tests ci: use cargo-llvm-cov for code coverage (#274) 2023-04-11 16:03:07 +08: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 feat: add cargo minsize task for tracking minification size (#276) 2023-04-14 13:07:37 +08:00
printer_babel.snap feat(coverage): add jsx printing tests (#279) 2023-04-15 12:31:37 +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 refactor(linter,semantic): move syntax check from linter to semantic (#272) 2023-04-10 12:23:53 +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'