jest-allure2-adapter
Advanced tools
Comparing version 0.3.8 to 0.3.9
/// <reference types="node" /> | ||
import { Allure, AllureStep, AllureTest, Attachment, Category, ContentType, ExecutableItemWrapper, LinkType, Severity, Stage, Status, StatusDetails, StepInterface } from 'allure-js-commons'; | ||
import { AllureAdapterConfig, AllureCurrentApi, AllureReporterApi, jasmine_ } from './index'; | ||
import { AllureAdapterConfig, AllureReporterApi, jasmine_ } from './index'; | ||
import { AllureCurrent } from './allure-current'; | ||
import { AttachmentOptions } from 'allure-js-commons/dist/src/model'; | ||
@@ -21,3 +22,3 @@ export declare class AllureReporter extends Allure implements AllureReporterApi { | ||
constructor(config?: AllureAdapterConfig | undefined); | ||
get test(): AllureCurrentApi; | ||
get test(): AllureCurrent; | ||
get isTestActive(): boolean; | ||
@@ -29,3 +30,3 @@ get currentTest(): AllureTest; | ||
startGroup(name: string): void; | ||
startTest(spec: jasmine_.CustomReporterResult): void; | ||
startTest(spec: jasmine_.CustomReporterResult, start?: number): void; | ||
startStep(name: string, start?: number): AllureStep; | ||
@@ -36,3 +37,3 @@ stepStatus(status: Status, details?: StatusDetails | any): void; | ||
setFullName(fullName: string): void; | ||
endTest(spec: jasmine_.CustomReporterResult): void; | ||
endTest(spec: jasmine_.CustomReporterResult, stop?: number): void; | ||
endGroup(): void; | ||
@@ -39,0 +40,0 @@ writeCategories(categories: Category[]): void; |
@@ -73,4 +73,4 @@ "use strict"; | ||
// todo decorators | ||
startTest(spec) { | ||
this.runningTest = this.currentGroup.startTest(spec.description); | ||
startTest(spec, start) { | ||
this.runningTest = this.currentGroup.startTest(spec.description, start); | ||
this.runningTest.fullName = spec.fullName; | ||
@@ -133,3 +133,3 @@ this.executable.initDescription(); | ||
} | ||
endTest(spec) { | ||
endTest(spec, stop) { | ||
var _a; | ||
@@ -180,3 +180,3 @@ this.endSteps(); | ||
} | ||
this.currentTest.endTest(); | ||
this.currentTest.endTest(stop); | ||
} | ||
@@ -299,3 +299,3 @@ endGroup() { | ||
addDescription(description) { | ||
this.test_.addDescription(description); | ||
this.test.addDescription(description); | ||
} | ||
@@ -375,5 +375,5 @@ description(description) { | ||
applyDescription() { | ||
const testDesc = this.test_.getDescription(); | ||
const testDesc = this.test.getDescription(); | ||
if (testDesc.length) { | ||
this.test_.applyDescription(); | ||
this.test.applyDescription(); | ||
} | ||
@@ -380,0 +380,0 @@ } |
@@ -36,3 +36,3 @@ /// <reference types="node" /> | ||
startGroup(name: string): void; | ||
startTest(spec: jasmine_.CustomReporterResult): void; | ||
startTest(spec: jasmine_.CustomReporterResult, start?: number): void; | ||
startStep(name: string, start?: number): AllureStep; | ||
@@ -42,3 +42,3 @@ stepStatus(status: Status, details?: StatusDetails | any): void; | ||
endStep(status?: Status, stage?: Stage, details?: StatusDetails | any, end?: number): void; | ||
endTest(spec: jasmine_.CustomReporterResult): void; | ||
endTest(spec: jasmine_.CustomReporterResult, stop?: number): void; | ||
endGroup(): void; | ||
@@ -45,0 +45,0 @@ writeCategories(categories: Category[]): void; |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.3.8", | ||
"version": "0.3.9", | ||
"description": "Allure 2 Adapter for jest", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2951404
52009