0.0.2 • Published 5 years ago
reportportal-agent-jest v0.0.2
reportportal-agent-jest
A Jest reporter that uploads the results to a ReportPortal server.
Installation
npm install --save-dev reportportal-agent-jest
Usage
In your jest config section of package.json
, add the following entry:
{
"jest": {
...
"reporters": [
"reportportal-agent-jest",
{
"endpoint": "https://your.reportportal.server/api/v1",
"project": "YourReportPortalProjectName"
}
],
...
}
}
First configure your ReportPortal access token, then start Jest:
$ export RP_TOKEN=<your_secure_token>
$ jest
Copyright Notice
Licensed under the Apache License v2.0
This code is based on the jest-junit but adapted by team members of Ontoforce for the ReportPortal upload. Ontoforce contributed this effort as Open Source to the ReportPortal project team.