oxc/tasks/coverage
overlookmotel 8a178075b7 fix(parser): treat JSX element tags starting with _ or $ as IdentifierReferences (#5343)
#5223 added a new variant `JSXElementName::IdentifierReference` for JSX identifiers which are treated as references (e.g. `<Foo>`) as opposed to `JSXElementName::Identifier` which is for lowercase (e.g. `<div>`).

But we were incorrectly categorizing identifiers beginning with `_` or `$` - these should also be treated as references.

(as discussed in https://github.com/oxc-project/oxc/pull/5339#issuecomment-2321037779)
2024-08-30 14:47:06 +00:00
..
misc feat(ast,parser): parse TSTypeAnnotations on AccessorProperty (#5179) 2024-08-25 01:02:48 +00:00
src refactor(semantic): transform checker continue checks if missing IDs (#5259) 2024-08-27 11:58:20 +00:00
Cargo.toml feat(oxc): add Compiler and CompilerInterface (#4954) 2024-08-19 10:20:05 +08:00
codegen_babel.snap chore(coverage): ignore annex-b/disabled tests 2024-08-24 14:20:06 +08:00
codegen_misc.snap feat(ast,parser): parse TSTypeAnnotations on AccessorProperty (#5179) 2024-08-25 01:02:48 +00:00
codegen_runtime_test262.snap chore(coverage): remove quotes around path from snapshot files 2024-08-16 16:03:50 +08:00
codegen_sourcemap.snap feat(codegen): print missing fields for AccessorProperty (#5291) 2024-08-28 08:42:39 +00:00
codegen_test262.snap feat(parser): parse regular expression with regex parser (#4998) 2024-08-22 03:09:55 +00: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(coverage): ignore annex-b/disabled tests 2024-08-24 14:20:06 +08:00
minifier_test262.snap feat(parser): parse regular expression with regex parser (#4998) 2024-08-22 03:09:55 +00:00
parser_babel.snap fix(parser): change unterminated regex error to be non-recoverable (#5285) 2024-08-28 01:57:31 +00:00
parser_misc.snap feat(parser): report errors on optional accessor properties (#5180) 2024-08-25 01:02:49 +00:00
parser_test262.snap chore(regular_expression): Extract diagnostics (#5287) 2024-08-28 03:19:29 +00:00
parser_typescript.snap chore(regular_expression): Extract diagnostics (#5287) 2024-08-28 03:19:29 +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(ast)!: add JSXElementName::IdentifierReference and JSXMemberExpressionObject::IdentifierReference (#5223) 2024-08-30 11:11:04 +00:00
semantic_misc.snap feat(ast)!: add JSXElementName::IdentifierReference and JSXMemberExpressionObject::IdentifierReference (#5223) 2024-08-30 11:11:04 +00:00
semantic_test262.snap chore(regular_expression): Extract diagnostics (#5287) 2024-08-28 03:19:29 +00:00
semantic_typescript.snap fix(parser): treat JSX element tags starting with _ or $ as IdentifierReferences (#5343) 2024-08-30 14:47:06 +00:00
transformer_babel.snap chore(coverage): ignore annex-b/disabled tests 2024-08-24 14:20:06 +08:00
transformer_misc.snap feat(ast,parser): parse TSTypeAnnotations on AccessorProperty (#5179) 2024-08-25 01:02:48 +00:00
transformer_test262.snap feat(parser): parse regular expression with regex parser (#4998) 2024-08-22 03:09:55 +00:00
transformer_typescript.snap fix(coverage): handle transformer errors 2024-08-18 22:19:58 +08:00
transpile.snap chore(coverage): print path relative to snapshot file (#4938) 2024-08-17 03:09:25 +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