testrigor-cli
v0.0.41-beta
Published
TestRigor Command Line
Readme
TestRigor Command Line
This is a command line tool for TestRigor. It allows you to run TestRigor tests from the command line.
Installation
- Install Node.js (version 18 or higher)
- Install TestRigor CLI:
npm install -g testrigor-cli
Examples
- Basic
testrigor test-suite run <test-suite-id> --token <token> - With new URL
testrigor test-suite run <test-suite-id> --token <token> --url <url> - With file upload
testrigor test-suite run <test-suite-id> --token <token> --file-path <path-to-file> - With branch
testrigor test-suite run <test-suite-id> --token <token> --branch <branch> --commit <commit> - With variables
testrigor test-suite run <test-suite-id> --token <token> --variables-path file.json - Localhost mode
testrigor test-suite run <test-suite-id> --token <token> --localhost - With test cases
testrigor test-suite run <test-suite-id> --token <token> --test-cases-path test_cases/**/*.{yaml,txt} - With rules
testrigor test-suite run <test-suite-id> --token <token> --rules-path rules/**/*.yaml - With settings
testrigor test-suite run <test-suite-id> --token <token> --settings-path settings.yaml(Can be YAML or JSON) - Run a single test case
testrigor test-suite run <test-suite-id> --token <token> --test-case-uuid <test-case-uuid> - Run with auto create AI rules enabled
testrigor test-suite run <test-suite-id> --token <token> --test-cases-path test_cases/**/*.{yaml,txt} --auto-create-ai-rules - Run with explicit mutations enabled
testrigor test-suite run <test-suite-id> --token <token> --test-cases-path test_cases/**/*.{yaml,txt} --explicit-mutations - With all options
testrigor test-suite run <test-suite-id> --token <token> --url <url> --branch <branch> --commit <commit> --variables-path file.json --localhost --test-cases-path test_cases/**/*.{yaml,txt} --rules-path rules/**/*.{yaml,txt} --auto-create-ai-rules --explicit-mutations - Save JUnit report to
./junit-report.xml(works only in sync mode):testrigor test-suite run <test-suite-id> --token <token> --junit-report-save-path ./report.xml - With comma-separated labels
testrigor test-suite run <test-suite-id> --token <token> --labels <labels> - Excluding comma-separated labels
testrigor test-suite run <test-suite-id> --token <token> --excluded-labels <excluded-labels> - With different WEB and API URLs
testrigor test-suite run <test-suite-id> --token <token> --base-url-web=<base-web-url> --base-url-api=<base_api_url> - Set the default test suite ID:
testrigor test-suite config --default <test-suite-id> - Remove the default test suite ID:
testrigor test-suite config --delete - Show current configuration:
testrigor test-suite config --show - Authenticate with TestRigor and store credentials (interactive prompt):
testrigor authenticate
