oxc/tasks/coverage
2023-02-23 21:37:08 +08:00
..
babel@8d1486dccb feat(coverage): add babel conformance (currently 2043/2057 99.32%) 2023-02-11 22:36:32 -08:00
src feat(coverage): print diagnostics to snapshots 2023-02-22 19:23:01 +08:00
test262@1c47728a20 ci: skip making comments from forks in benchmark 2023-02-23 21:37:08 +08:00
typescript@ed15865eb0 ci: skip making comments from forks in benchmark 2023-02-23 21:37:08 +08:00
babel.snap fix(oxc_parser): eat decorator for export 2023-02-23 12:28:34 +08:00
Cargo.toml feat(coverage): print diagnostics to snapshots 2023-02-22 19:23:01 +08:00
printer.snap fix(oxc_parser): eat decorator for export 2023-02-23 12:28:34 +08:00
README.md feat(coverage): add typescript conformance (currently 4287/4861 88.19%) 2023-02-11 23:46:28 -08:00
test262.snap fix(oxc_parser): eat decorator for export 2023-02-23 12:28:34 +08:00
typescript.snap fix(oxc_parser): eat decorator for export 2023-02-23 12:28:34 +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'