Package Exports
- tr_cypress_reporter_simple
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tr_cypress_reporter_simple) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
TestRail reporter for Cypress
First step:
The first step is to enable the experimental Cypress feature: "experimentalRunEvents": true
Then you need to add a new event to cypress/plugins/index.js
on('after:run', (run, results) => {
})
Now receive data from a Run object.
Next step:
- add the tr_credentials.json file to the project root
{
"host": "https://<name>.testrail.net",
"username": "",
"password": "",
"project_name": "",
"suite_name": ""
}
- Add to the new event:
on('after:run', (run, results) => {
let tr = new TestRaiImporter(run);
tr.updateSuiteCases();
tr.importStatusesToNewRun();
})