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

@testquality/cli

v1.2.1-alpha.2

Published

This command line interface allows you to upload your automated test results to TestQuality. Automated test results must be outputted in JUnit XML format, which most test automation tools will provide. Test result attachments and related defects are also

Downloads

102

Readme

TestQuality CLI

This command line interface allows you to upload your automated test results to TestQuality. Automated test results must be outputted in JUnit XML format, which most test automation tools will provide. Test result attachments and related defects are also supported through test name tags or console outputs.

For DEFECTS we expect the following tag format for both test name tags and console ouptuts.

  • GitHub Defects [[DEFECT|22]]
  • Jira Defects [[DEFECT|TQ-123]]

For ATTACHMENTS the following format is expected:

  • Attachments from test name tag [[ATTACHMENT|ScreenshotFileName.png]]
  • Attachments from console output [[ATTACHMENT|path/to/file]]

Note that for attachment you will need to use 'run_result_output_dir' option to specify the test result output directory.

Requirements

In order to upload xml you will need to:

  1. Create a target Test Plan
  2. Authenticate with TestQuality
  3. Run command to upload files

Compiled Commands

There are compiled commands for

  • Windows
  • MacOS
  • Linux
  • Alpine

Commands can be downloaded from cli.testquality.com

Note: For alpine you must install libstdc++

apk add --no-cache libstdc++

Usage

For list of commands

yarn start --help

or

testquality-macos --help

For command help

yarn start login --help

or

testquality-macos login --help

Save

Include --save to save tokens to use with other commands.

Example

Example workflow.

testquality-macos login [email protected] *password* --save
testquality-macos upload_test_run 'sampleXml/*.xml' --project_name=Test --plan_name=Test

You can also create a manual test plan run.

testquality-macos create_manual_run --project_name=My_Project --plan_name=My_Test_Plan --run_name=Test_Run_Name

CSV Files

testquality-macos upload_csv ./test_run_results.csv --cf ./test_run_results.config

Personal Access Token (PAT)

Add the --access_token=pat where pat equals token to any command.

Or

Save token into .env or environment with TQ_ACCESS_TOKEN=pat where pat equals token

Contributing

Build

yarn
yarn build

Running

yarn start login <username> <password>

Packaging Commands

yarn package

Development

yarn serve

Docker

Retrieve an authentication token and authenticate your Docker client to your registry. Use the AWS CLI:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 092049816521.dkr.ecr.us-east-1.amazonaws.com/test-quality-cli

Note: If you receive an error using the AWS CLI, make sure that you have the latest version of the AWS CLI and Docker installed.

Build your Docker image using the following command. For information on building a Docker file from scratch see the instructions here

docker build -t test-quality-cli .

Run your Docker image local.

docker run --name test-quality-cli -p 80:80 --rm test-quality-cli

After the build completes, tag your image so you can push the image to this repository:

docker tag test-quality-cli:latest 092049816521.dkr.ecr.us-east-1.amazonaws.com/test-quality-cli:latest

Run the following command to push this image to your newly created AWS repository:

docker push 092049816521.dkr.ecr.us-east-1.amazonaws.com/test-quality-cli:latest

Kubernetes

kustomize build kustomize/overlays/<<environment>> | kubectl apply --dry-run --validate -f -

kustomize build kustomize/overlays/<<parameters.environment>> | kubectl apply --record=true -f -

Restoring a plan or suite

For Plan

  1. Login

  2. List plans that have been deleted

    testquality-macos plans --revision_log -p _sort=-updated_at -p operation=delete
  3. Restore

    testquality-macos restore --plan_id 17452

For Suite

  1. Login

  2. List suites that have been deleted

    testquality-macos suites --revision_log -p _sort=-updated_at -p operation=delete
  3. Find associated plans

    testquality-macos plan_suite --revision_log -p _sort=-updated_at -p operation=delete -p suite_id=105923
  4. Restore

    testquality-macos restore --suite_id 105923 --plan_id 17452

Calling with params

--params.per_page -1 --params._with test // gives us: {per_page: -1, with: 'test'}