jest-allure2-adapter
Advanced tools
Comparing version 0.1.16 to 0.1.17
@@ -19,4 +19,4 @@ /// <reference types="node" /> | ||
startTest(spec: any): void; | ||
startStep(name: string): AllureStep; | ||
endStep(status?: Status, stage?: Stage): void; | ||
startStep(name: string, start?: number): AllureStep; | ||
endStep(status?: Status, stage?: Stage, end?: number): void; | ||
private endSteps; | ||
@@ -30,3 +30,3 @@ private applyGroupping; | ||
private findAnyError; | ||
step<T>(name: string, body?: (step: StepInterface) => T, ...args: any[]): any; | ||
step<T>(name: string, body?: (step: StepInterface) => T, start?: number, ...args: any[]): any; | ||
addEnvironment(name: string, value: string): this; | ||
@@ -33,0 +33,0 @@ writeAttachment(content: Buffer | string, type: ContentType): string; |
@@ -74,4 +74,4 @@ "use strict"; | ||
} | ||
startStep(name) { | ||
const allureStep = this.currentExecutable.startStep(name); | ||
startStep(name, start) { | ||
const allureStep = this.currentExecutable.startStep(name, start); | ||
this.stepStack.push(allureStep); | ||
@@ -81,3 +81,3 @@ this.stepNameStack.push(name); | ||
} | ||
endStep(status, stage) { | ||
endStep(status, stage, end) { | ||
// console.log('END:' + JSON.stringify(this.stepNameStack)); | ||
@@ -95,3 +95,3 @@ const step = this.stepStack.pop(); | ||
} | ||
step.endStep(); | ||
step.endStep(end); | ||
} | ||
@@ -198,4 +198,4 @@ endSteps() { | ||
} | ||
step(name, body, ...args) { | ||
const allureStep = this.startStep(name); | ||
step(name, body, start, ...args) { | ||
const allureStep = this.startStep(name, start); | ||
let result; | ||
@@ -202,0 +202,0 @@ if (!body) { |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"description": "Allure 2 Adapter for jest", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
@@ -165,3 +165,3 @@ # Jest-Allure-2 reporting plugin | ||
- [ ] Add examples | ||
- [ ] Ability to config | ||
- [ ] Ability to config (timestamp to step, jira link) | ||
@@ -168,0 +168,0 @@ --- |
40248