oxc/tasks/coverage
2024-02-09 20:51:50 +08:00
..
misc feat(semantic): report no class name error (#2273) 2024-02-02 19:05:00 +08:00
src fix(tasks/coverage): when providing filter, do not run just submodules (#2310) 2024-02-05 15:06:37 +08:00
Cargo.toml chore(deps): update rust crates (#2199) 2024-01-30 15:30:22 +08:00
codegen_babel.snap chore: update snapshots 2023-11-28 16:27:10 +08:00
codegen_misc.snap fix(parser): fix crash on TSTemplateLiteralType in function return position (#2089) 2024-01-19 23:14:05 +08:00
codegen_runtime_test262.snap fix(codegen): format new expession + import expression with the correct parentheses (#2346) 2024-02-09 20:51:50 +08:00
codegen_test262.snap chore: update snapshots 2024-01-22 19:16:09 +08:00
codegen_typescript.snap chore: update snapshot 2024-02-06 22:17:59 +08:00
minifier_babel.snap chore: update snapshots 2023-11-28 16:27:10 +08:00
minifier_test262.snap chore: update snapshots 2024-01-22 19:16:09 +08:00
parser_babel.snap feat(semantic): report parameter related errors for setter/getter (#2316) 2024-02-05 17:38:43 +08:00
parser_misc.snap feat(semantic): report no class name error (#2273) 2024-02-02 19:05:00 +08:00
parser_test262.snap refactor: use our forked version of miette::Reporter for tests (#2266) 2024-02-02 16:15:31 +08:00
parser_typescript.snap feat(semantic): report parameter related errors for setter/getter (#2316) 2024-02-05 17:38:43 +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'