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.6.0 to 1.6.1

4

dist/reporter/index.d.ts

@@ -1,2 +0,2 @@

import { TestrailReporterConfig, TestRailCypressResults, TestRailReference, TestRailRun } from '../types';
import { TestrailReporterConfig, TestRailCypressResults, TestRailReference, TestRailRun, TestRailRunsResponse } from '../types';
export declare function getFormattedErrorMessages(testCase: TestRailReference): string | null;

@@ -22,3 +22,3 @@ declare class TestRailReporter {

onError(e: any): void;
findOrCreateRunByName(runs: TestRailRun[]): Promise<TestRailRun>;
findOrCreateRunByName(response: TestRailRunsResponse): Promise<TestRailRun>;
private findOrCreateRun;

@@ -25,0 +25,0 @@ private addResultsForCases;

@@ -83,5 +83,5 @@ "use strict";

}
findOrCreateRunByName(runs) {
findOrCreateRunByName(response) {
return __awaiter(this, void 0, void 0, function* () {
let run = runs.find((r) => !r.is_completed && r.name === this.branchName);
let run = response.runs.find((r) => r.name === this.branchName);
const caseIds = this.getCoveredCases();

@@ -96,3 +96,3 @@ printer_1.default('cids', caseIds);

.addRun(this.config.projectId, this.config.suiteId, this.branchName, description, null, this.config.includeAll, caseIds, this.refs)
.then((response) => response.data)
.then((result) => result.data)
.catch(this.onError);

@@ -105,3 +105,3 @@ }

.updateRun(run.id, this.branchName, description, run.milestone_id, this.config.includeAll, caseIds, this.refs)
.then((response) => response.data)
.then((result) => result.data)
.catch(this.onError);

@@ -119,3 +119,3 @@ printer_1.default('Run updated', updateRunResponse);

return this.client
.getRuns(this.config.projectId)
.getRuns(this.config.projectId, '&is_completed=0')
.then((response) => response.data)

@@ -122,0 +122,0 @@ .then(this.findOrCreateRunByName.bind(this))

@@ -29,2 +29,12 @@ export declare type CypressReportError = {

};
export declare type TestRailRunsResponse = {
offset: number;
limit: number;
size: number;
_links: {
next: string | null;
prev: string | null;
};
runs: TestRailRun[];
};
export declare type TestRailCypressResult = {

@@ -31,0 +41,0 @@ case_id: string;

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

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

"dependencies": {
"@sum.cumo/node-testrail": "2.4.0",
"@sum.cumo/node-testrail": "2.4.1",
"yargs": "^17.0.1"

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

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