oxc/tasks/coverage
2023-05-25 22:48:10 +08:00
..
babel@d54bc3cd1c chore: bump submodules 2023-05-25 22:48:10 +08:00
misc chore(parser): move inline tests to snapshot testing 2023-05-21 12:05:25 +08:00
src chore(coverage): remove catch_unwind 2023-05-25 21:22:00 +08:00
test262@3e858ef02d chore: bump submodules 2023-05-25 22:48:10 +08:00
typescript@8db251fb47 chore: bump submodules 2023-05-25 22:48:10 +08:00
Cargo.toml refactor: move SourceType from oxc_ast to oxc_span (#351) 2023-05-12 23:16:14 +08:00
formatter_babel.snap chore(coverage): bump coverage status 2023-05-25 18:46:48 +08:00
formatter_test262.snap chore(coverage): bump coverage status 2023-05-25 18:46:48 +08:00
minifier_babel.snap chore(coverage): bump coverage status 2023-05-25 18:46:48 +08:00
minifier_test262.snap chore(coverage): bump coverage status 2023-05-25 18:46:48 +08:00
parser_babel.snap chore(coverage): bump coverage status 2023-05-25 18:46:48 +08:00
parser_misc.snap chore(parser): move inline tests to snapshot testing 2023-05-21 12:05:25 +08:00
parser_test262.snap chore(coverage): bump coverage status 2023-05-25 18:46:48 +08:00
parser_typescript.snap chore(coverage): bump coverage status 2023-05-25 18:46:48 +08:00
README.md chore(coverage): remove mention of git submodule update --remote in README 2023-04-01 10:57: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'