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

clevertest-cli

v1.1.0

Published

CLI tool to submit xUnit/JUnit test automation results to CleverTest from CI/CD pipelines

Readme

clevertest-cli

Submit xUnit/JUnit test automation results to CleverTest from your CI/CD pipeline.

Install

npm install -g clevertest-cli

Or run without installing:

npx clevertest-cli submit ...

Usage

clevertest-cli submit \
  --token clt_your_token_here \
  --project-id your_project_id \
  --results reports/junit.xml \
  --source "jest"

With a milestone and glob pattern for multiple files:

clevertest-cli submit \
  --token clt_your_token_here \
  --project-id your_project_id \
  --milestone-id your_milestone_id \
  --results "reports/**/*.xml" \
  --name "Nightly suite" \
  --source "github-actions"

Options

| Flag | Required | Description | |---|---|---| | --token | yes | API token from Project Settings → API Tokens | | --project-id | yes | CleverTest project ID (visible in the project URL) | | --results | yes | Path or glob to xUnit XML file(s) | | --source | no | Source label, e.g. "jest", "github-actions" | | --milestone-id | no | Associate results with a milestone | | --name | no | Custom run name (defaults to the file name) | | --link | no | Attach a link to the run. Use "Label=https://…" or a bare URL. Repeat the flag for multiple links. | | --api-url | no | Override API URL (default: https://clevertest.pro) |

Supported formats

JUnit (Maven Surefire), pytest, Jest, Vitest, PHPUnit, NUnit 2, NUnit 3, TestNG, xUnit.net.

CI examples

GitHub Actions

- name: Submit test results
  if: always()
  run: |
    npx clevertest-cli submit \
      --token ${{ secrets.CLEVERTEST_TOKEN }} \
      --project-id ${{ vars.CLEVERTEST_PROJECT_ID }} \
      --results "reports/**/*.xml" \
      --source "github-actions" \
      --link "GitHub Actions=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
      --link "Commit=${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}"

The --link flags surface as clickable chips in the CleverTest run detail page and in the exported HTML report.

GitLab CI

submit-results:
  stage: test
  script:
    - npx clevertest-cli submit
        --token $CLEVERTEST_TOKEN
        --project-id $CLEVERTEST_PROJECT_ID
        --results "reports/**/*.xml"
        --source "gitlab-ci"

Exit codes

  • 0 — all submitted tests passed
  • 1 — one or more tests failed, or an error occurred during submission

This makes it safe to use as the last step in a CI job — a red build stays red if tests failed.

Generating an API token

  1. Open your project in CleverTest.
  2. Go to Project Settings → API Tokens.
  3. Click Generate token, give it a label (e.g. GitHub Actions CI).
  4. Copy the token immediately — it won't be shown again.
  5. Store it as a CI secret (e.g. CLEVERTEST_TOKEN).

License

MIT