Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

allure-jasmine

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allure-jasmine - npm Package Compare versions

Comparing version 2.0.0-beta.3 to 2.0.0-beta.4

2

dist/declarations/index.d.ts
export { JasmineAllureReporter } from "./src/JasmineAllureReporter";
export { JasmineConsoleReporter } from "./src/JasmineConsoleReporter";
export { AllureRuntime, AllureConfig, ContentType, Severity, AllureInterface, GlobalInfoWriter, ExecutorInfo, Category } from "allure-js-commons";
export { AllureRuntime, AllureConfig, ContentType, Severity, Allure, GlobalInfoWriter, ExecutorInfo, Category } from "allure-js-commons";
/// <reference types="node" />
/// <reference types="jasmine" />
import { AllureGroup, AllureRuntime, AllureStep, AllureTest, ContentType, ExecutableItemWrapper, Severity, AllureInterface, GlobalInfoWriter } from "allure-js-commons";
import { AllureGroup, IAllureRuntime, AllureStep, AllureTest, ContentType, ExecutableItemWrapper, Status, GlobalInfoWriter, Allure, StepInterface } from "allure-js-commons";
export declare class JasmineAllureReporter implements jasmine.CustomReporter {

@@ -10,6 +10,6 @@ private readonly runtime;

private runningExecutable;
constructor(runtime: AllureRuntime);
constructor(runtime: IAllureRuntime);
private getCurrentGroup;
readonly currentGroup: AllureGroup;
getInterface(): AllureInterface;
getInterface(): Allure;
getGlobalInfoWriter(): GlobalInfoWriter;

@@ -32,22 +32,12 @@ readonly currentTest: AllureTest;

}
export declare class JasmineAllureInterface extends AllureInterface {
export declare class JasmineAllureInterface extends Allure {
private readonly reporter;
constructor(reporter: JasmineAllureReporter);
private readonly currentExecutable;
setDescription(text: string): void;
setFlaky(): void;
setKnown(): void;
setMuted(): void;
addOwner(owner: string): void;
setSeverity(severity: Severity): void;
addIssue(issue: string): void;
addTag(tag: string): void;
addTestType(type: string): void;
addLink(name: string, url: string, type?: string): void;
protected readonly currentExecutable: ExecutableItemWrapper;
protected readonly currentTest: AllureTest;
private startStep;
step<T>(name: string, body: () => any): any;
step<T>(name: string, body: (step: StepInterface) => any): any;
logStep(name: string, status?: Status): void;
attachment(name: string, content: Buffer | string, type: ContentType): void;
addParameter(name: string, value: string): void;
addLabel(name: string, value: string): void;
getGlobalInfoWriter(): GlobalInfoWriter;
}

@@ -12,5 +12,3 @@ "use strict";

exports.Severity = allure_js_commons_1.Severity;
exports.AllureInterface = allure_js_commons_1.AllureInterface;
exports.ExecutorInfo = allure_js_commons_1.ExecutorInfo;
exports.Category = allure_js_commons_1.Category;
exports.Allure = allure_js_commons_1.Allure;
//# sourceMappingURL=index.js.map

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

exports.JasmineAllureReporter = JasmineAllureReporter;
class JasmineAllureInterface extends allure_js_commons_1.AllureInterface {
class JasmineAllureInterface extends allure_js_commons_1.Allure {
constructor(reporter) {

@@ -217,45 +217,5 @@ super();

}
setDescription(text) {
this.currentExecutable.description = text;
this.currentExecutable.descriptionHtml = text;
get currentTest() {
return this.reporter.currentTest;
}
setFlaky() {
this.currentExecutable.detailsFlaky = true;
}
setKnown() {
this.currentExecutable.detailsKnown = true;
}
setMuted() {
this.currentExecutable.detailsMuted = true;
}
addOwner(owner) {
if (this.reporter.currentTest === null)
throw new Error("No test running!");
this.reporter.currentTest.addLabel(allure_js_commons_1.LabelName.OWNER, owner);
}
setSeverity(severity) {
if (this.reporter.currentTest === null)
throw new Error("No test running!");
this.reporter.currentTest.addLabel(allure_js_commons_1.LabelName.SEVERITY, severity);
}
addIssue(issue) {
if (this.reporter.currentTest === null)
throw new Error("No test running!");
this.reporter.currentTest.addLabel(allure_js_commons_1.LabelName.ISSUE, issue);
}
addTag(tag) {
if (this.reporter.currentTest === null)
throw new Error("No test running!");
this.reporter.currentTest.addLabel(allure_js_commons_1.LabelName.TAG, tag);
}
addTestType(type) {
if (this.reporter.currentTest === null)
throw new Error("No test running!");
this.reporter.currentTest.addLabel(allure_js_commons_1.LabelName.TEST_TYPE, type);
}
addLink(name, url, type) {
if (this.reporter.currentTest === null)
throw new Error("No test running!");
this.reporter.currentTest.addLink(name, url, type);
}
startStep(name) {

@@ -291,2 +251,5 @@ const allureStep = this.currentExecutable.startStep(name);

}
logStep(name, status) {
this.step(name, () => { });
}
attachment(name, content, type) {

@@ -296,12 +259,2 @@ const file = this.reporter.writeAttachment(content, type);

}
addParameter(name, value) {
if (this.reporter.currentTest === null)
throw new Error("No test running!");
this.reporter.currentTest.addParameter(name, value);
}
addLabel(name, value) {
if (this.reporter.currentTest === null)
throw new Error("No test running!");
this.reporter.currentTest.addLabel(name, value);
}
getGlobalInfoWriter() {

@@ -308,0 +261,0 @@ return this.reporter.getGlobalInfoWriter();

{
"name": "allure-jasmine",
"version": "2.0.0-beta.3",
"version": "2.0.0-beta.4",
"description": "Allure Jasmine integration",

@@ -18,14 +18,34 @@ "license": "Apache-2.0",

"generate-report": "allure generate ./out/allure-results -o ./out/allure-report --clean",
"runTest": "jasmine ./dist/test/*.js",
"runTestDebug": "node $NODE_DEBUG_OPTION ./node_modules/jasmine/bin/jasmine ./dist/test/*.js",
"runTest": "nyc jasmine ./dist/test/*.test.js",
"runTestDebug": "node $NODE_DEBUG_OPTION ./node_modules/.bin/jasmine ./dist/test/*.js",
"test": "rimraf ./out ; npm run runTest ; npm run generate-report"
},
"devDependencies": {
"@types/jasmine": "^3.3.7",
"jasmine": "^3.3.1"
"@types/jasmine": "^3.3.12",
"jasmine": "^3.4.0"
},
"dependencies": {
"allure-js-commons": "^2.0.0-beta.3"
"allure-js-commons": "^2.0.0-beta.4"
},
"gitHead": "600e5dacbc6587d3d2994b26c44e5dbf2e6f2099"
"nyc": {
"check-coverage": false,
"lines": 85,
"statements": 85,
"functions": 85,
"branches": 75,
"extension": [
".ts"
],
"include": [
"**/src/**/*"
],
"reporter": [
"lcov",
"text"
],
"all": true,
"report-dir": "./out/coverage",
"temp-dir": "./out/.nyc"
},
"gitHead": "8dfa461802b3e82dcdcac7714edef9a5f810368b"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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