Socket
Socket
Sign inDemoInstall

@sum.cumo/cypress-testrail-reporter

Package Overview
Dependencies
27
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.3 to 1.2.4

6

dist/index.js

@@ -61,3 +61,3 @@ #!/usr/bin/env node

})
.option('uploadAssests', {
.option('assets', {
demandOption: false,

@@ -82,3 +82,3 @@ describe: 'Should Cypress Videos / Screenshots be uploaded and attached to the current run?',

const { name, reportFilename, closeRun, attach, } = yargs.argv;
printer_1.default('Start Test Rail Export', name, reportFilename, closeRun, attach);
printer_1.default('Start Test Rail Export', name, reportFilename, closeRun, attach, yargs.argv.assets);
// // ParseCypressResults

@@ -95,3 +95,3 @@ parser_1.default(reportFilename)

const reporter = new reporter_1.default(Object.assign(Object.assign({}, config), { user: yargs.argv.username, password: yargs.argv.password, host: yargs.argv.host }), name, parsedTestResults.testRailCases);
yield reporter.postResults(closeRun, yargs.argv.attach, yargs.argv.uploadAssests, yargs.argv.assetsArchiveName);
yield reporter.postResults(closeRun, yargs.argv.attach, yargs.argv.assets, yargs.argv.assetsArchiveName);
}

@@ -98,0 +98,0 @@ catch (e) {

@@ -128,4 +128,2 @@ "use strict";

if (this.shouldPostResults()) {
// Fetch Runs from testrail
this.currentRun = yield this.findOrCreateRun();
// Do we have a valid run?

@@ -170,2 +168,4 @@ if (this.currentRun && this.currentRun.id) {

return __awaiter(this, void 0, void 0, function* () {
// Fetch Runs from testrail
this.currentRun = yield this.findOrCreateRun();
yield this.addResultsForCases();

@@ -172,0 +172,0 @@ yield this.addAttachmentsToTestRun(attachments);

{
"name": "@sum.cumo/cypress-testrail-reporter",
"description": "Parse and Post your cypress results to testrail",
"version": "1.2.3",
"version": "1.2.4",
"bin": {

@@ -27,3 +27,3 @@ "cypress-testrail-reporter": "dist/index.js"

"dependencies": {
"@sum.cumo/node-testrail": "2.2.2",
"@sum.cumo/node-testrail": "2.2.3",
"yargs": "^16.2.0"

@@ -30,0 +30,0 @@ },

@@ -72,3 +72,3 @@ # cypress-testrail-reporter

```
yarn cypress-testrail-reporter --name NAME_OF_YOUR_TESTRUN --attach test/cypress/results/report.html --uploadAssests test/cypress/videos test/cypress/screenshots --assetsArchiveName CUSTOM_NAME_FOR_YOUR_ARCHIVE
yarn cypress-testrail-reporter --name NAME_OF_YOUR_TESTRUN --attach test/cypress/results/report.html --assets test/cypress/videos test/cypress/screenshots --assetsArchiveName CUSTOM_NAME_FOR_YOUR_ARCHIVE
```

@@ -88,3 +88,3 @@ This will create a new or update an existing Testrun with the given name and will report all results found in your Mochawesome Report.

`password` | The corresponding password
`uploadAssests` | Provide Assets Paths if you want to attach them to a run
`assets` | Provide Assets Paths if you want to attach them to a run
`assetsArchiveName` | Provide a custom archive Name. Default: cypressAssets

@@ -91,0 +91,0 @@ `attach` | Provide further attachments like reports

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc