oxc/tasks/coverage
Boshen c220730779 feat(coverage): check symbols and scopes after transformation (#4917)
closes https://github.com/oxc-project/oxc/issues/4790

@overlookmotel enjoy ... take a look at the snapshots and probably nothing else.

The snapshots are minimal right now, but it's already showing symbols from import specifiers are not being removed. We can iterate on the snapshot representation to aid debugging later.

I'll extend this to `transformer_conformance` and `oxc-monitor` in an up coming PR.
2024-08-16 07:05:11 +00:00
..
misc fix(parser): fix enum member parsing (#4543) 2024-07-30 10:43:09 +00:00
src feat(coverage): check symbols and scopes after transformation (#4917) 2024-08-16 07:05:11 +00:00
Cargo.toml feat(coverage): check symbols and scopes after transformation (#4917) 2024-08-16 07:05:11 +00:00
codegen_babel.snap chore: bump test262, babel and TypeScript submodules (#3644) 2024-06-12 18:42:32 +08:00
codegen_misc.snap fix(parser): fix enum member parsing (#4543) 2024-07-30 10:43:09 +00:00
codegen_runtime_test262.snap feat(codegen): improve codegen formatting (#3731) 2024-06-18 04:14:10 +00:00
codegen_sourcemap.snap feat(codegen): implement BinaryExpressionVisitor (#4548) 2024-07-31 12:44:19 +00:00
codegen_test262.snap chore: bump test262, babel and TypeScript submodules (#3644) 2024-06-12 18:42:32 +08:00
codegen_typescript.snap fix(codegen): print raw if value is number is Infinity (#4676) 2024-08-06 03:24:40 +00:00
minifier_babel.snap chore: bump test262, babel and TypeScript submodules (#3644) 2024-06-12 18:42:32 +08:00
minifier_test262.snap refactor(minifier): add NodeUtil trait for accessing symbols on ast nodes (#4734) 2024-08-08 02:48:25 +00:00
parser_babel.snap refactor(parser): use error codes for ts diagnostics (#4335) 2024-07-18 16:09:25 +00:00
parser_misc.snap fix(parser): parse assert keyword in TSImportAttributes (#4610) 2024-08-04 01:41:31 +00:00
parser_test262.snap refactor(parser): use error codes for ts diagnostics (#4335) 2024-07-18 16:09:25 +00:00
parser_typescript.snap feat(semantic): check for invalid interface heritage clauses (#4928) 2024-08-16 02:30:09 +00:00
prettier_babel.snap feat(parser): parse modifiers with parse_modifiers (take 2) (#3977) 2024-06-30 03:46:34 +00:00
prettier_misc.snap chore(coverage): add test for huge binary expression and nested if statements (#4084) 2024-07-08 00:15:26 +08:00
prettier_test262.snap feat(parser): parse modifiers with parse_modifiers (take 2) (#3977) 2024-06-30 03:46:34 +00:00
prettier_typescript.snap refactor(parser): use function instead of trait to parse list with rest element (#4028) 2024-07-02 13:43:14 +00:00
README.md chore: bump test262, babel and TypeScript submodules (#3644) 2024-06-12 18:42:32 +08:00
semantic_babel.snap feat(coverage): check symbols and scopes after transformation (#4917) 2024-08-16 07:05:11 +00:00
semantic_misc.snap feat(coverage): check symbols and scopes after transformation (#4917) 2024-08-16 07:05:11 +00:00
semantic_test262.snap feat(coverage): check symbols and scopes after transformation (#4917) 2024-08-16 07:05:11 +00:00
semantic_typescript.snap feat(coverage): check symbols and scopes after transformation (#4917) 2024-08-16 07:05:11 +00:00
transformer_babel.snap feat(parser): parse modifiers with parse_modifiers (take 2) (#3977) 2024-06-30 03:46:34 +00:00
transformer_misc.snap fix(parser): fix enum member parsing (#4543) 2024-07-30 10:43:09 +00:00
transformer_test262.snap chore: bump test262, babel and TypeScript submodules (#3644) 2024-06-12 18:42:32 +08:00
transformer_typescript.snap fix(transformer/typescript): typescript syntax within SimpleAssignmentTarget with MemberExpressions is not stripped (#4920) 2024-08-16 05:05:10 +00:00
transpile.snap fix(codegen): print parenthesis properly (#4245) 2024-07-14 04:13:10 +00:00

Coverage

Tools are tested against test262, babel and TypeScript for conformance.

Clone the test repositories beforehand:

just submodules

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'

# find crash scene by turning off rayon and print out the test cases in serial
cargo coverage -- --debug

# Run after submodules are updated
UPDATE_SNAPSHOT=1 just c