Skip to content

v1.0.0

Choose a tag to compare

@aslushnikov aslushnikov released this 18 May 13:10
· 18 commits to main since this release
a34b418

@flakiness/junit-xml v1.0.0

The first stable release of @flakiness/junit-xml — a small, dependency-light
CLI that converts JUnit XML test reports into a Flakiness
report and uploads it automatically.

npx @flakiness/junit-xml --flakiness-project myorg/myproject ./build/reports/junit

Highlights

  • Works with the JUnit XML you already produce. Tested against real output
    from Surefire, JUnit 5, TestNG, bun test, and Rust's cargo-nextest.
  • Auto-upload, zero-config in CI. Authenticates via an access token or
    GitHub Actions OIDC — no token to manage when your project is bound to the
    repository.
  • Ships as both NPM package and self-contained executable

Install

npx (no install step):

npx @flakiness/junit-xml --flakiness-project myorg/myproject ./path/to/junit

Standalone binary (bundles its own runtime):

# macOS / Linux
curl -fsSL https://github.com/flakiness/junit-xml/releases/latest/download/install.sh | sh

# Windows (PowerShell)
irm https://github.com/flakiness/junit-xml/releases/latest/download/install.ps1 | iex

Prebuilt binaries are published for Windows x64, Linux x64/arm64 (glibc and
musl/Alpine), and macOS arm64/x64.

Examples

# Bun
bun test --reporter=junit --reporter-outfile=./junit.xml
npx @flakiness/junit-xml --category bun --flakiness-project myorg/myproject ./junit.xml

# Rust (cargo-nextest, with [profile.ci.junit] in .config/nextest.toml)
cargo nextest run --profile ci
npx @flakiness/junit-xml --category rust --flakiness-project myorg/myproject ./target/nextest/ci/junit.xml

Full usage and authentication details are in the
README.