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.5 to 1.2.6

8

dist/index.js

@@ -31,2 +31,8 @@ #!/usr/bin/env node

})
.option('suiteId', {
demandOption: false,
describe: 'related Testrail Suite Id',
type: 'string',
default: (config === null || config === void 0 ? void 0 : config.suiteId) || null,
})
.option('reportFilename', {

@@ -93,3 +99,3 @@ demandOption: false,

try {
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);
const reporter = new reporter_1.default(Object.assign(Object.assign({}, config), { user: yargs.argv.username, password: yargs.argv.password, host: yargs.argv.host, suiteId: yargs.argv.suiteId }), name, parsedTestResults.testRailCases);
yield reporter.postResults(closeRun, yargs.argv.attach, yargs.argv.assets, yargs.argv.assetsArchiveName);

@@ -96,0 +102,0 @@ }

2

dist/reporter/index.js

@@ -93,3 +93,3 @@ "use strict";

run = this.client
.addRun(this.config.projectId, null, this.branchName, description, null, false, caseIds, this.refs)
.addRun(this.config.projectId, this.config.suiteId, this.branchName, description, null, false, caseIds, this.refs)
.then((response) => response.data)

@@ -96,0 +96,0 @@ .catch(this.onError);

@@ -8,2 +8,3 @@ export declare type CypressReportError = {

projectId: string;
suiteId: string | null;
branchReferenceRegex: string;

@@ -10,0 +11,0 @@ reportFilename: string;

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

@@ -6,0 +6,0 @@ "cypress-testrail-reporter": "dist/index.js"

@@ -39,2 +39,3 @@ # cypress-testrail-reporter

`projectId` | The ID of your Testrail Project
`suiteId` | Testrails Suite Id
`branchReferenceRegex` | This Reporter will create JIRA References if this regex is matching your Branch name

@@ -51,2 +52,3 @@ `host` | The Address of your running Testrail Application (API)

"projectId": "1",
"suiteId": "2",
"branchReferenceRegex": "((feat|chore)-\\d*)",

@@ -84,2 +86,3 @@ "host": "https://example.testrail.io/",

`name` | The Name of your Testrail Run
`suiteId` | Testrails suite Id
`reportFilename` | The relative path to your report (from `process.cwd`).Example: `result.json` Default: `reporterOptions.reportFilename`

@@ -86,0 +89,0 @@ `closeRun` | Whether to close the run automatically or not. Default: `false`

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