xray-nunit-upload
v1.1.0
Published
A simple NPM package to upload NUnit test results to Xray.
Downloads
2
Readme
Xray NUnit Results Upload NPM Package
This NPM package uploads NUnit test results to Xray using the Xray API.
Requirements
- Node.js (v16 or above)
- Xray API credentials (client ID, client secret, base URL)
- NUnit TestResults.xml file
Installation
Clone the repository or download the package:
git clone <your-repository-url> cd <your-package-folder>Install dependencies:
npm installSet up environment variables: Make sure to set these in your environment or
.envfile:XRAY_CLIENT_IDXRAY_CLIENT_SECRETXRAY_API_BASE_URLPROJECT_KEY
Usage
Run the script with your NUnit XML file and project key:
node index.js <path-to-TestResults.xml> <projectKey>