oxc/tasks/coverage
Boshen d2f7ea2923
chore: manually clone git modules instead of using submodules (#2274)
closes #2231

Submodules are a blocker for beginners, we should make it clone on
demand.

It is also a blocker for people who wants to target this repo as a crate
for testing purposes, cargo will do a full clone if you specify
oxc_parser = { git = "this repo" } in Cargo.toml
2024-02-02 11:56:18 +00:00
..
misc feat(semantic): report no class name error (#2273) 2024-02-02 19:05:00 +08:00
src chore: manually clone git modules instead of using submodules (#2274) 2024-02-02 11:56:18 +00: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 chore(tasks): update codegen runtime snapshot (#2223) 2024-01-31 12:25:28 +08:00
codegen_test262.snap chore: update snapshots 2024-01-22 19:16:09 +08:00
codegen_typescript.snap fix(ast): AcessorProperty is missing decorators (#2176) 2024-01-26 15:43:05 +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 refactor: use our forked version of miette::Reporter for tests (#2266) 2024-02-02 16:15:31 +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 no class name error (#2273) 2024-02-02 19:05:00 +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'