biome/xtask/coverage
renovate[bot] 2cef76a280
Some checks failed
CI on main / Format Rust Files (push) Waiting to run
CI on main / Lint Rust Files (push) Waiting to run
CI on main / Check Dependencies (push) Waiting to run
CI on main / Test (push) Waiting to run
CI on main / Test262 Coverage (push) Waiting to run
Release / Release (push) Waiting to run
Release / Package win32-arm64 (push) Blocked by required conditions
Release / Package win32-x64 (push) Blocked by required conditions
Release / Package linux-arm64 (push) Blocked by required conditions
Release / Package linux-x64 (push) Blocked by required conditions
Release / version (push) Blocked by required conditions
Release / Package darwin-arm64 (push) Blocked by required conditions
Release / Package darwin-x64 (push) Blocked by required conditions
Release / Package linux-arm64-musl (push) Blocked by required conditions
Release / Package linux-x64-musl (push) Blocked by required conditions
Release / Build WASM (push) Blocked by required conditions
Release / Package JavaScript APIs (push) Blocked by required conditions
Release / Publish CLI (push) Blocked by required conditions
Release / Publish JS API (push) Blocked by required conditions
Repository dispatch on main / Build @biomejs/wasm-web (push) Waiting to run
Repository dispatch on main / Repository dispatch (push) Blocked by required conditions
Benchmarks GraphQL / Bench (push) Has been cancelled
Benchmarks JS / Bench (push) Has been cancelled
Benchmarks JSON / Bench (push) Has been cancelled
Benchmarks Configuration / Bench (push) Has been cancelled
Benchmarks CSS / Bench (push) Has been cancelled
Benchmarks Manifests / Bench (push) Has been cancelled
Benchmarks Module Graph / Bench (push) Has been cancelled
fix(deps): update rust crates (#7889)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-07 05:02:34 +00:00
..
src chore: update Rust to v1.91.0 (#7947) 2025-11-03 06:03:09 +00:00
.gitignore chore: remove git modules for better internal experience (#3054) 2024-06-04 09:41:24 +01:00
Cargo.toml fix(deps): update rust crates (#7889) 2025-11-07 05:02:34 +00:00
README.md chore(coverage): babel TypeScript & JS tests (#2162) 2022-02-26 20:47:41 +00:00

coverage

cargo coverage

Runs the parser against the various test suites to validate its conformance.

Run coverage command.
USAGE:
    cargo coverage <SUBCOMMAND> [option]
SUBCOMMANDS:
    compare             Compares output between two --json outputs
OPTIONS
    --markdown          Emits supported output into markdown format. Supported by `compare` subcommand.
    --json              Prints the test results in JSON. This mode will send all other test output and user messages to stderr.
    --detailed=[debug]  Prints a detailed summary at the end for all failing tests. Includes in depth details if set to `debug`.
    --suites=<IDS>      Runs the specified tests suites. Use comma as separator.
                        Valid values are:
                            *: will run all suites
                            js: will run all javascript suites; Same as "js/262";
                            ts: will run all typescript suites; Same as "ts/microsoft,ts/babel";
                            jsx: will run all jsx suites; Same as "jsx/babel";
                            js/262: will run https://github.com/tc39/test262/tree/main/test;
                            ts/microsoft: will run https://github.com/microsoft/Typescript/tree/main/tests/cases
                            ts/babel: will run https://github.com/babel/babel/tree/main/packages/babel-parser/test/fixtures/typescript
                            jsx/babel: will run https://github.com/babel/babel/tree/main/packages/babel-parser/test/fixtures/jsx/basic
                        Default is "*".
    --filter=<file>     Filters out tests that don't match the query.
    --help              Prints this help.

cargo coverage compare

Useful to compare the coverage, for example between your feature branch and main.

# (commit your code on pr branch, run)
git checkout main
cargo coverage --json > base_results.json
git checkout <your branch>
cargo coverage --json > new_results.json
cargo coverage compare ./base_results.json ./new_results.json --markdown