npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@probara/cli

v0.9.2

Published

Command-line tool that imports JUnit XML test results into Probara from any CI.

Readme

The probara command imports JUnit XML test results into Probara from any CI. It reads the reports your test framework already writes, links each test to its Probara test case, creates the cases that are missing, uploads the files the reports reference, and closes the run once everything is in. It also syncs the scenarios of Gherkin .feature files, and imports the results of Cucumber JSON reports (Gherkin), and manages the Vises of Probara Vis: it uploads a test's recording or screenshot, with the console, network and actions of its Playwright trace, as a new Vis, and records a page of a browser an agent drives, over the Chrome DevTools Protocol, as a replay Vis (probara vis). It also manages the recording links anyone records their screen with (recording links). cucumber-js reports with its attachments, at the end of the run, through @probara/cucumber-reporter.

It understands the JUnit dialects of these tools, and detects each one per file:

| Framework | Writer | Dialect | | ---------------------- | -------------------------------- | --------------- | | Jest | jest-junit | jest | | pytest | --junitxml | pytest | | Playwright | the junit reporter | playwright | | Java (Maven) | Maven Surefire | surefire | | Go | gotestsum --junitfile | gotestsum | | Cypress | cypress-junit | cypress-junit | | Vitest | vitest run --reporter=junit | vitest | | Anything else in JUnit | any JUnit XML (testsuite tree) | generic |

Requirements

  • Node.js 22.12 or later, on the machine that runs the import (a Python, Java or Go job needs Node too).
  • A Probara app token, created from the JUnit XML card in Integrations (get a token), and the code of the project to report into (such as SHOP). Reporting from CI needs a paid plan. The vis commands need a personal API token instead, and no project (Probara Vis).

Install

Run it without installing, or add it to a project:

npx @probara/cli --version
npm i -D @probara/cli

Run it from a checkout

To try a change that is not released yet, build this repository once, then run the built bin with Node:

git clone https://github.com/cynch-me/probara-sdk.git
cd probara-sdk
corepack enable
pnpm install
pnpm build
node packages/cli/dist/cli.js --version

To type probara like the docs do, add an alias in the checkout: alias probara="node $PWD/packages/cli/dist/cli.js". pnpm build builds @probara/core first; the CLI finds it through the workspace link, so keep the checkout where it is.

Quick start (60 seconds)

  1. Create an app token from the JUnit XML card in Integrations (get a token), and keep it in the environment. The CLI has no --token flag, so the token never shows up in a process list or a CI log:

    export PROBARA_API_TOKEN="probara_app_your_token"
    export PROBARA_PROJECT=SHOP
  2. Check what would be sent. A dry run needs no token and sends nothing:

    probara import junit junit.xml --dry-run
  3. Import the report:

    probara import junit junit.xml

The log goes to stderr and ends with a link to the run:

$ probara import junit junit.xml
[probara] junit.xml: jest, 10 results
[probara] Results: 10 (7 passed, 2 failed, 1 skipped, 0 blocked)
[probara] Project: SHOP
[probara] Run: new run "Automated run 2026-09-29 14:05 UTC"
[probara] Base URL: https://app.probara.net
[probara] Missing cases: created
[probara] Attachments: on
[probara] Recorded 10 results (10 new cases, 0 unmatched) in R-1 (closed): https://app.probara.net/projects/SHOP/runs/R-1

[!TIP] In CI, run the same command after the tests, even when they failed. Failed tests do not fail the step: only a reporting problem does (exit codes). Pick your CI in the CI guides.

Import several files or a folder into one run, and quote globs so the shell leaves them to probara:

probara import junit "reports/**/*.xml"
probara import junit target/surefire-reports

GitHub Actions: parallel jobs, one run

In GitHub Actions every job of one workflow run that imports without a run ULID goes into the same run. The parallel jobs leave it open with PROBARA_CLOSE_RUN: false, and a final job closes it, after every test job, even when they fail:

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        shard: [1, 2, 3]
    steps:
      # ... checkout, install, run the tests of the shard ...
      - if: always()
        run: npx @probara/cli import junit reports/junit.xml
        env:
          PROBARA_API_TOKEN: ${{ secrets.PROBARA_API_TOKEN }}
          PROBARA_PROJECT: SHOP
          PROBARA_CLOSE_RUN: false

  probara:
    needs: test
    if: always()
    runs-on: ubuntu-latest
    steps:
      - run: npx @probara/cli run close
        env:
          PROBARA_API_TOKEN: ${{ secrets.PROBARA_API_TOKEN }}
          PROBARA_PROJECT: SHOP

A workflow Probara launched for one of its runs gets the run's ULID as the input probara_run_id: set PROBARA_RUN_ULID: ${{ inputs.probara_run_id }} and every job reports into that run. A single job needs none of this: its run is closed at the end. The GitHub Actions guide has the details.

Documentation

| Page | What it covers | | ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Commands | import junit, import results, import cucumber, run create, run close, sync gherkin, snap upload, snap finalize, snap wait, with their full --help | | Gherkin | Syncing .feature files as cases, and importing Cucumber JSON results | | Configuration | Every option, its variable and default; precedence; self-hosted Probara | | Linking tests to cases | Case ids in names and properties, automation keys, missing cases | | JUnit mapping and dialects | How each framework's JUnit becomes results, and how to produce it | | Attachments | Files referenced by the reports, test output, limits | | Exit codes | What each code means and how to fail or pass CI on purpose | | Troubleshooting | Problems and their solutions | | Debugging | --dry-run, --debug, --json, stdout and stderr | | Network | Timeouts, retries, rate limits, proxies and certificates | | Upgrading | Versioning policy and the automation key contract | | Changelog | What changed in each version |

CI guides: GitHub Actions, GitLab CI, Jenkins, Azure Pipelines, CircleCI, Bitbucket Pipelines, Buildkite, and sharded runs.

How it works

probara parses every file before it sends anything, so one invalid file sends nothing. Each testcase becomes a result for @probara/core, which builds its automation key, keeps every field inside the API limits, sends the results in chunks with retries, and closes the run. Library authors can build on @probara/core directly.

License

Apache License 2.0.