oxc/tasks/coverage
2023-05-07 22:23:31 +08:00
..
babel@18493749b5 feat(cli): add --rules CLI flag (#290) 2023-04-18 15:54:44 +08:00
src refactor(coverage): use ast.json() method for serialization test 2023-05-07 22:23:31 +08:00
test262@e5a7450095 chore: update submodule and snapshots 2023-04-18 21:12:18 +08:00
typescript@3d3b2c724e chore: update submodule and snapshots 2023-04-18 21:12:18 +08: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(coverage): test serialization on ast and hir (#339) 2023-05-07 22:05:45 +08:00
formatter_babel.snap chore: rename oxc_printer to oxc_formatter (#336) 2023-05-07 17:47:13 +08:00
formatter_test262.snap chore: rename oxc_printer to oxc_formatter (#336) 2023-05-07 17:47:13 +08:00
minifier_babel.snap chore: rename oxc_printer to oxc_formatter (#336) 2023-05-07 17:47:13 +08:00
minifier_test262.snap chore: rename oxc_printer to oxc_formatter (#336) 2023-05-07 17:47:13 +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 chore: update submodule and snapshots 2023-04-18 21:12:18 +08:00
typescript.snap chore: update submodule and snapshots 2023-04-18 21:12:18 +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'