@testmonitor/testmonitor-cli
v1.0.0
Published
The TestMonitor CLI lets you interact with the TestMonitor platform directly from your terminal or CI pipelines.
Readme
TestMonitor CLI
The TestMonitor CLI (testmonitor-cli) lets you interact with the TestMonitor platform directly from your terminal or CI pipelines. You can use it to submit automated test results through a simple, scriptable interface.
Table of Contents
Installation
Install the CLI globally using NPM:
npm install -g @testmonitor/testmonitor-cliTo upgrade to the latest version later on, run:
npm update -g @testmonitor/testmonitor-cliAfter installation, you can verify the installed version with:
testmonitor-cli --versionGetting Started
To begin using the CLI, follow these steps:
- Go to your project settings in TestMonitor.
- Enable the JUnit XML integration under the Integrations menu.
- Copy the Token.
- Run the following command:
testmonitor-cli junit submit -d domain.testmonitor.com -t <token> -f ./junit.xmlReplace
<token>with your actual integration ID.
Command Reference
This section lists all available commands grouped by functionality.
JUnit
Commands for managing JUnit-style test reports.
Submit
Submit a JUnit XML report and create a new test run in your TestMonitor project.
testmonitor-cli junit submit [options]| Option | Description | |-----------------------------------|--------------------------------------------------| | -d, --domain | TestMonitor domain (required) | | -t, --token | JUnit token (required) | | -f, --file | Path to JUnit XML file (required) | | -a, --automation-type | Test type (e.g. playwright, selenium) | | -n, --name | Custom test run name | | -m, --milestone-id | Target milestone ID | | -o, --milestone-name | Milestone name to find or create | | -e, --test-environment-id | Target test environment ID | | -p, --preserve-names | Preserve original test case names | | -s, --skip-root-suite | Skip root test suite nesting | | -v, --verbose | Output debug information |
Documentation
Please refer to our knowledge base for more information.
License
Copyright (c) TestMonitor | we are Cerios B.V. All rights reserved.
