oxc/tasks/coverage
2023-02-12 16:27:26 +08:00
..
babel@8d1486dccb feat(coverage): add babel conformance (currently 2043/2057 99.32%) 2023-02-11 22:36:32 -08:00
src chore(coverage): add typescript to cargo coverage command 2023-02-12 16:27:26 +08:00
test262@1c47728a20 feat(tasks): add initial test262 setup 2023-02-11 00:43:09 -08:00
typescript@ed15865eb0 feat(coverage): add typescript conformance (currently 4287/4861 88.19%) 2023-02-11 23:46:28 -08:00
babel.snap chore(coverage): add typescript to cargo coverage command 2023-02-12 16:27:26 +08:00
Cargo.toml feat(coverage): add typescript conformance (currently 4287/4861 88.19%) 2023-02-11 23:46:28 -08:00
README.md feat(coverage): add typescript conformance (currently 4287/4861 88.19%) 2023-02-11 23:46:28 -08:00
test262.snap feat(coverage): print parsing conformance for test262 (currently 100%) 2023-02-11 08:02:42 -08:00
typescript.snap feat(coverage): add typescript conformance (currently 4287/4861 88.19%) 2023-02-11 23:46:28 -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 --recursive --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'