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 🙏

© 2024 – Pkg Stats / Ryan Hefner

testtrack-cli

v1.0.6

Published

Submit your automated test runs to your Test Track account project

Downloads

9

Readme

Introduction

The Test Track CLI allows you to submit your automated test runs from your CI/CD servers and submit the results to your project under your Test Track account. Test Track can process results from JUnit XML files which most CI/CD servers support

Installation

The package is available via npm by running the following command. The below installs it globally so its available from anywhere, supports all platforms where Node is installed and supported.

npm -g install Test-Track/test-track-cli

Usage

In order to submit an automated test run, you first need to generate an API key under your Test Track account.

You can do this by going to Account & Billing in the top right menu and then go to API keys. Then click the plus button to create a new API key. You can either create one API key for all your projects, but we recommend creating an API key for each project and/or CI/CD server.

Your CI/CD server needs to submit the result file in JUnit format and provide the cli the options for the API key, project id and the path to the file.

To submit the result file, the command is as follows:

test-track-cli --api-key <API KEY> --project-id <PROJECT ID> --file /path/to/file/result.xml

e.g.

test-track-cli --api-key dofosnbssnvs --project-id 12345678 --file /my-proj/test-results/results.xml

If you're automated test run was submitted successfully you should see the output Successfully submitted output test run.

If you get anything else, then it means something has gone wrong, either with what data has been provided in the CLI command, or something wrong with the Test Track API.

Below are the responses that could be returned

403 Forbidden

Your API key does not match an API key against your account

404 Not Found

The project ID you provided was not found under your account

503 Service Unavailable

It should be unlikely you would receive this. This means something has gone wrong on the Test Track API that it couldn't process the request at this time.