Commit Graph

5 Commits

Author SHA1 Message Date
connorshea ebd2ce4cb1 test(linter/plugins): Include a repo link and SHA/version in the JS Plugin conformance markdown files. (#20606)
This also simplifies the way we track the conformance versions a bit, by centralizing the info into `repos.json`.

I know #20607 will conflict with this one, so feel free to merge whichever of these two you prefer, and then I'll resolve the conflicts afterward.

AI Disclosure: Generated with help from Claude Code.
2026-04-23 21:17:01 +00:00
overlookmotel 4047e71ef3 docs(linter/plugins): improve docs for conformance tests (#20528)
Prompted by #20262. Fix an omission in docs for conformance tests, and explain how to filter tests while working on adding a plugin to conformance suite.
2026-03-19 15:34:15 +00:00
overlookmotel 13606c3ab1 docs(linter/plugins): update conformance README (#20234)
Update README for Oxlint JS plugins conformance tests. Going to link to this in alpha blog post.
2026-03-11 15:23:42 +00:00
overlookmotel 5723f3d727 build(linter/plugins): add conformance build (#16751)
Supporting conformance testing is requiring adding extra code paths to `RuleTester` and main JS plugins code.

Previously, these paths were guarded by `if (DEBUG)` branches, so the extra code is not in release build. But ideally we don't want this code in debug build either, so the tests are testing a build that's identical to release build, except for enabling debug assertions.

Introduce a new build specifically for conformance testing, and gate code specific to conformance testing with `if (CONFORMANCE)` instead of `if (DEBUG)`.
2025-12-11 14:29:52 +00:00
overlookmotel cb74fad70d test(linter/plugins): add conformance tests (#16650)
Add conformance tester for JS plugins.

The tester runs all of ESLint's test cases for all its built-in rules, but using Oxlint's `RuleTester` in place of ESLint's. i.e. the ESLint rules are run as Oxlint JS plugins.

It outputs the results in `snapshot.md` file.

Majority of the failing test cases are false positives. Later PRs will improve the conformance tester and `RuleTester` so it correctly handles `sourceType`, `jsx`, and TypeScript sources.

These tests do not run in CI. For now it's just useful for me to commit this, while I work on improving the tester.

I'm not sure if inside `apps/oxlint` is the right place for this ultimately, but for now I think it's passable.
2025-12-09 15:13:37 +00:00