oxc/tasks/coverage
2023-10-07 17:01:23 +08:00
..
babel@d062d47d57 chore: bump submodules and snapshots 2023-10-06 16:15:35 +13:00
misc fix(parser): parse [+In] in object binding initializer (#874) 2023-09-09 14:54:20 +08:00
src feat(transformer_conformance): snapshot passed and failed tests (#921) 2023-09-16 20:58:31 +08:00
test262@c4642dd714 chore: bump submodules and snapshots 2023-10-06 16:15:35 +13:00
typescript@2f34e57ed3 chore: bump submodules and snapshots 2023-10-06 16:15:35 +13:00
Cargo.toml ci: turn off doc tests because they are slow to compile and run (#961) 2023-10-07 17:01:23 +08:00
formatter_babel.snap chore: bump submodules and snapshots 2023-10-06 16:15:35 +13:00
formatter_test262.snap chore: bump submodules and snapshots 2023-10-06 16:15:35 +13:00
minifier_babel.snap feat(minimizer): print parentheses 2023-06-01 22:45:26 +08:00
minifier_test262.snap feat(parser): TypeScript 5.2 (#811) 2023-10-05 12:52:14 +13:00
parser_babel.snap chore: bump submodules and snapshots 2023-10-06 16:15:35 +13:00
parser_misc.snap chore(tasks): add swc-7187 test case 2023-06-30 16:41:52 +08:00
parser_test262.snap chore: bump submodules and snapshots 2023-10-06 16:15:35 +13:00
parser_typescript.snap chore: bump submodules and snapshots 2023-10-06 16:15:35 +13: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'