oxc/tasks/coverage
2023-03-11 23:26:45 +08:00
..
babel@15bd88c430 chore(coverage): bump submodules 2023-03-10 23:28:51 -08:00
src refactor(oxc_ast): remove unnecessary SourceTypeBuilder 2023-03-11 16:21:14 +08:00
test262@9704d7f22f chore(coverage): bump submodules 2023-03-10 23:28:51 -08:00
typescript@46d70d79cd chore(coverage): bump submodules 2023-03-10 23:28:51 -08:00
babel.snap feat(linter): check top level ModuleDeclaration 2023-03-11 21:09:03 +08:00
Cargo.toml chore(rust): bump deps 2023-03-11 23:26:45 +08:00
printer.snap chore(coverage): bump submodules 2023-03-10 23:28:51 -08:00
README.md chore(coverage): print negative tests; enable decorators; update to the latest remote 2023-03-07 23:37:00 +08:00
test262.snap feat(linter): check top level ModuleDeclaration 2023-03-11 21:09:03 +08:00
typescript.snap feat(linter): check top level ModuleDeclaration 2023-03-11 21:09:03 +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

For maintainers, update to the latest remote, run:

git submodule update --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'