New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wdio-reportportal-reporter

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wdio-reportportal-reporter - npm Package Compare versions

Comparing version 6.0.1-alpha to 6.0.1

1

build/entities.d.ts

@@ -13,3 +13,2 @@ import { STATUS, TYPE } from "./constants";

addTags(): void;
addSauseLabId(id: string): void;
}

@@ -16,0 +15,0 @@ export declare class EndTestItem {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("./utils");
const ReporterOptions_1 = require("./ReporterOptions");
const utils_1 = require("./utils");
class StartTestItem {

@@ -23,7 +23,2 @@ constructor(name, type) {

}
addSauseLabId(id) {
if (id) {
this.attributes.push({ key: "SLID", value: id });
}
}
}

@@ -30,0 +25,0 @@ exports.StartTestItem = StartTestItem;

@@ -19,3 +19,2 @@ import Reporter from "@wdio/reporter";

private sanitizedCapabilities;
private sessionId;
private rpPromisesCompleted;

@@ -22,0 +21,0 @@ private specFile;

@@ -122,5 +122,2 @@ "use strict";

}
if (this.options.isSauseLabRun) {
testStartObj.addSauseLabId(this.sessionId);
}
if (this.options.setRetryTrue) {

@@ -186,3 +183,2 @@ testStartObj.retry = true;

this.sanitizedCapabilities = runner.sanitizedCapabilities;
this.sessionId = runner.sessionId;
this.client = client || new ReportPortalClient(this.options.reportPortalClientConfig);

@@ -192,6 +188,6 @@ this.launchId = process.env.RP_LAUNCH_ID;

const startLaunchObj = {
attributes: this.options.reportPortalClientConfig.attributes,
description: this.options.reportPortalClientConfig.description,
id: this.launchId,
mode: this.options.reportPortalClientConfig.mode,
attributes: this.options.reportPortalClientConfig.attributes,
};

@@ -198,0 +194,0 @@ const { tempId } = this.client.startLaunch(startLaunchObj);

@@ -15,3 +15,2 @@ import { LEVEL, MODE } from "./constants";

setRetryTrue: boolean;
isSauseLabRun: boolean;
cucumberNestedSteps: boolean;

@@ -18,0 +17,0 @@ autoAttachCucumberFeatureToScenario: boolean;

@@ -20,3 +20,2 @@ "use strict";

this.setRetryTrue = false;
this.isSauseLabRun = false;
this.cucumberNestedSteps = false;

@@ -23,0 +22,0 @@ this.autoAttachCucumberFeatureToScenario = false;

6

lib/__tests__/startLaunch.spec.ts

@@ -1,4 +0,4 @@

import {Attribute} from "../../build/ReporterOptions";
import {MODE} from "../constants";
import {getOptions, RPClient} from "./reportportal-client.mock";
import {Attribute} from "../../build/ReporterOptions";

@@ -27,6 +27,6 @@ const Reporter = require("../../build/reporter");

const launchObj = {
attributes: options.reportPortalClientConfig.attributes,
description: options.reportPortalClientConfig.description,
id: REAL_LAUNCH_ID,
mode: options.reportPortalClientConfig.mode,
attributes: options.reportPortalClientConfig.attributes,
};

@@ -53,6 +53,6 @@ expect(reporter.client.startLaunch).toBeCalledWith(launchObj);

const launchObj = {
attributes: options.reportPortalClientConfig.attributes,
description: options.reportPortalClientConfig.description,
id: REAL_LAUNCH_ID,
mode: options.reportPortalClientConfig.mode,
attributes: options.reportPortalClientConfig.attributes,
};

@@ -59,0 +59,0 @@ expect(reporter.client.startLaunch).toBeCalledWith(launchObj);

@@ -24,13 +24,2 @@ import {TYPE} from "../constants";

test("should add SauseLab id", () => {
const testStartObj = new StartTestItem("foo", TYPE.STEP);
testStartObj.addSauseLabId("foo");
expect(testStartObj.attributes).toEqual([{key: "SLID", value: "foo"}]);
});
test("should not add SauseLab id is empty", () => {
const testStartObj = new StartTestItem("foo", TYPE.STEP);
testStartObj.addSauseLabId(null);
expect(testStartObj.attributes).toEqual([]);
});
});
import {STATUS, TYPE} from "./constants";
import {parseTags} from "./utils";
import {Attribute} from "./ReporterOptions";
import {parseTags} from "./utils";

@@ -30,8 +30,2 @@ export class StartTestItem {

}
public addSauseLabId(id: string) {
if (id) {
this.attributes.push({key: "SLID", value: id});
}
}
}

@@ -38,0 +32,0 @@

@@ -52,3 +52,2 @@ import logger from "@wdio/logger";

private sanitizedCapabilities: string;
private sessionId: string;
private rpPromisesCompleted = false;

@@ -149,5 +148,2 @@ private specFile: string;

}
if (this.options.isSauseLabRun) {
testStartObj.addSauseLabId(this.sessionId);
}
if (this.options.setRetryTrue) {

@@ -228,3 +224,2 @@ testStartObj.retry = true;

this.sanitizedCapabilities = runner.sanitizedCapabilities;
this.sessionId = runner.sessionId;
this.client = client || new ReportPortalClient(this.options.reportPortalClientConfig);

@@ -234,6 +229,6 @@ this.launchId = process.env.RP_LAUNCH_ID;

const startLaunchObj = {
attributes: this.options.reportPortalClientConfig.attributes,
description: this.options.reportPortalClientConfig.description,
id: this.launchId,
mode: this.options.reportPortalClientConfig.mode,
attributes: this.options.reportPortalClientConfig.attributes,
};

@@ -240,0 +235,0 @@ const {tempId} = this.client.startLaunch(startLaunchObj);

@@ -21,3 +21,2 @@ import {LEVEL, MODE} from "./constants";

public setRetryTrue = false;
public isSauseLabRun = false;
public cucumberNestedSteps = false;

@@ -24,0 +23,0 @@ public autoAttachCucumberFeatureToScenario = false;

{
"name": "wdio-reportportal-reporter",
"version": "6.0.1-alpha",
"version": "6.0.1",
"description": "A WebdriverIO v5 plugin. Report results to Report Portal.",

@@ -37,4 +37,4 @@ "main": "build/reporter.js",

"json-stringify-safe": "~5.0.1",
"validator": "^12.0.0",
"@wdio/reporter": "^5.18.6",
"validator": "^13.0.0",
"@wdio/reporter": "^5.22.4",
"@wdio/logger": "^5.16.10",

@@ -44,10 +44,10 @@ "reportportal-js-client": "^2.0.0"

"devDependencies": {
"@types/jest": "^25.1.4",
"@types/node": "^13.9.0",
"jest": "^25.1.0",
"ts-jest": "^25.2.1",
"@types/jest": "^25.2.1",
"@types/node": "^13.11.0",
"jest": "^25.2.7",
"ts-jest": "^25.3.1",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.0",
"ts-node": "^8.6.2",
"tslint": "^6.0.0",
"rimraf": "^3.0.2",
"ts-node": "^8.8.2",
"tslint": "^6.1.1",
"typescript": "^3.8.3"

@@ -54,0 +54,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc