jest-allure2-adapter
Advanced tools
Comparing version 0.2.24 to 0.2.25
@@ -20,2 +20,3 @@ /// <reference types="node" /> | ||
startStep(name: string, start?: number): AllureStep; | ||
stepStatus(status: Status): void; | ||
endStep(status?: Status, stage?: Stage, end?: number): void; | ||
@@ -22,0 +23,0 @@ private endSteps; |
@@ -66,17 +66,6 @@ "use strict"; | ||
// todo check empty name | ||
// todo name fix to suite info | ||
this.runningGroup = this.runtime.startGroup(name); | ||
let nameGr = name; | ||
// if name fullname | ||
/*for (let i = 0; i < this.groupStack.length + 1; i++) { | ||
if (this.groupStack.length > i) { | ||
for (let j = 0; j <= i; j++) { | ||
nameGr = name.replace(this.groupStack[j].name, ''); | ||
} | ||
} | ||
}*/ | ||
this.groupNameStack.push(nameGr); | ||
this.groupNameStack.push(name); | ||
this.groupStack.push(this.currentGroup); | ||
} | ||
// todo remove - change name someway | ||
// todo decorators | ||
@@ -90,5 +79,6 @@ startTest(spec) { | ||
} | ||
this.applyGroupping(spec); | ||
this.applyGroupping(spec.description); | ||
} | ||
startStep(name, start) { | ||
// todo configurable | ||
const allureStep = this.currentExecutable.startStep(exports.dateStr() + ' | ' + name, start); | ||
@@ -99,4 +89,8 @@ this.stepStack.push(allureStep); | ||
} | ||
stepStatus(status) { | ||
if (this.currentStep) { | ||
this.currentStep.status = status; | ||
} | ||
} | ||
endStep(status, stage, end) { | ||
// console.log('END:' + JSON.stringify(this.stepNameStack)); | ||
const step = this.stepStack.pop(); | ||
@@ -106,3 +100,2 @@ this.stepNameStack.pop(); | ||
console.log('No step started'); | ||
// throw new Error('No step started'); | ||
return; | ||
@@ -121,3 +114,3 @@ } | ||
} | ||
applyGroupping(spec) { | ||
applyGroupping(specDescritption) { | ||
const replaceDot = (name) => { | ||
@@ -146,3 +139,3 @@ // todo regexp with \s | ||
this.currentTest.name = | ||
groups.slice(3).join(' > ') + ' \n >> ' + spec.description; | ||
groups.slice(3).join(' > ') + ' \n >> ' + specDescritption; | ||
} | ||
@@ -149,0 +142,0 @@ } |
@@ -30,2 +30,3 @@ /// <reference types="node" /> | ||
startStep(name: string, start?: number): AllureStep; | ||
stepStatus(status: Status): void; | ||
endStep(status?: Status, stage?: Stage, end?: number): void; | ||
@@ -32,0 +33,0 @@ endTest(spec: jasmine_.CustomReporterResult): void; |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.2.24", | ||
"version": "0.2.25", | ||
"description": "Allure 2 Adapter for jest", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index", |
@@ -224,2 +224,3 @@ # Jest-Allure-2 reporting plugin | ||
- [ ] Ability to config (timestamp to step, jira link) | ||
- [ ] historyId? | ||
@@ -226,0 +227,0 @@ --- |
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
248
48311
1122