oxc/tasks/coverage
Boshen 530455849b chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267)
If submodules are outdated, it'll panic with the following message

```
Repository is outdated, please run `just submodules` to update it.
```

For us maintainers, we'll need the env `UPDATE_SNAPSHOT` to force an update.
2024-05-14 10:18:00 +00:00
..
misc fix(parser): parse DecoratorCallExpression when Arguments contains MemberExpression (#3265) 2024-05-14 03:18:41 +00:00
src chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
Cargo.toml refactor(coverage): replace yaml parsing with saphyr (#3144) 2024-04-30 22:49:39 +08:00
codegen_babel.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
codegen_misc.snap fix(parser): parse DecoratorCallExpression when Arguments contains MemberExpression (#3265) 2024-05-14 03:18:41 +00:00
codegen_runtime_test262.snap fix(codegen): when async is on the left-hand side of a for-of, wrap it in parentheses (#2407) 2024-02-13 22:42:23 +08:00
codegen_sourcemap.snap chore: update babel repo (#3205) 2024-05-08 20:15:15 +08:00
codegen_test262.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
codegen_typescript.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
minifier_babel.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
minifier_test262.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
parser_babel.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
parser_misc.snap fix(parser): parse DecoratorCallExpression when Arguments contains MemberExpression (#3265) 2024-05-14 03:18:41 +00:00
parser_test262.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
parser_typescript.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
prettier_babel.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
prettier_misc.snap fix(parser): parse DecoratorCallExpression when Arguments contains MemberExpression (#3265) 2024-05-14 03:18:41 +00:00
prettier_test262.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
prettier_typescript.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
README.md
transformer_babel.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
transformer_misc.snap fix(parser): parse DecoratorCallExpression when Arguments contains MemberExpression (#3265) 2024-05-14 03:18:41 +00:00
transformer_test262.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00:00
transformer_typescript.snap chore(tasks): add commit sha to snapshots to make sure submodules are not outdated (#3267) 2024-05-14 10:18:00 +00: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'