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

testrix-cli

v1.0.9

Published

CLI tool to parse and publish test reports from JUnit, HTML, and Excel formats.

Downloads

347

Readme

Testrix CLI

Testrix CLI is a command-line tool designed to parse test reports (JUnit, XML, HTML, Excel) and publish the results to a specified server API. This allows for centralized tracking, analytics, and dashboards for your CI/CD pipelines and local environments.


📦 Features

  • ✅ Parses JUnit, .xml, .html, and .xls/.xlsx test reports
  • 📁 Extracts test case results including status, duration, and error details
  • 📊 Aggregates summary statistics (total, passed, failed, skipped)
  • 🌐 Publishes results to a configurable server API endpoint
  • 🧪 Designed for integration with CI tools like GitLab CI, GitHub Actions, Jenkins, etc.

🚀 Installation

To install Testrix CLI, run the following command:

npm install -g testrix-cli

🛠️ Usage

  1. Create a configuration file: Create a config.json file in your project root, or a specified path. You can use the src/config.json.template as a starting point.

    {
      "serverApiUrl": "http://localhost:4000/api/submit-test-reports",
      "userId": "YOUR_USER_ID",
      "projectId": "YOUR_PROJECT_ID",
      "apiKey": "YOUR_API_KEY",
      "projectName": "Your Project Name",
      "projectDescription": "Optional: A description for your project.",
      "reportsDir": "./test-reports",
      "name": "Optional: Test Run Name (defaults to module name from test suite if omitted)",
      "environment": "Optional: Environment (e.g., development, staging, production)",
      "branch": "Optional: Git Branch Name",
      "commit": "Optional: Git Commit Hash"
    }
    • serverApiUrl: The URL of your server's API endpoint where test reports will be sent as a JSON payload (e.g., http://your-server.com/api/submit-test-reports).
    • userId: A unique identifier for the user initiating the test run. This will be sent to your server.
    • projectId: The UUID of your project (required by backend).
    • apiKey: API key for authentication (required by backend).
    • projectName: The name of the project associated with the test run (optional, for display only).
    • reportsDir: The local directory where your test report files are located. This should be an absolute path or a path relative to where you execute the testrix command. Ensure the CLI has read access to this directory.
    • name: Optional. If omitted, the run name will default to the module name from the test suite (e.g., api/payroll/allowances.spec.js).
  2. Run Testrix CLI: Execute the testrix command, optionally providing the path to your config file.

    testrix [path/to/your/config.json]

    If no path is provided, testrix will look for config.json in the current working directory.


Project Structure

.github/
cli.js
package.json
package-lock.json
README.md
src/
  ├── config.json.template
  ├── parsers.js
  └── publisher.js

Note: Testrix CLI no longer manages a local SQLite database directly. It sends data to your configured server API, which is responsible for database storage.