jest-allure2-adapter
Advanced tools
Comparing version 0.1.12 to 0.1.13
@@ -6,3 +6,3 @@ /// <reference types="node" /> | ||
private runningGroup; | ||
runningExecutable: ExecutableItemWrapper | null; | ||
private runningExecutable; | ||
private groupStack; | ||
@@ -22,7 +22,7 @@ private groupNameStack; | ||
endStep(status?: Status, stage?: Stage): void; | ||
endSteps(): void; | ||
private endSteps; | ||
private applyGroupping; | ||
endTest(spec: any): void; | ||
get currentStep(): AllureStep | null; | ||
writeCategories(): void; | ||
private applyGroupping; | ||
endGroup(): void; | ||
@@ -39,3 +39,2 @@ private findMessageAboutThrow; | ||
addPackage(value: string): this; | ||
addPackageByTestPath(relativeFrom: string, spec: any): this; | ||
addParameter(name: string, value: string): this; | ||
@@ -42,0 +41,0 @@ addParameters(...params: [string, any][]): this; |
@@ -101,2 +101,19 @@ "use strict"; | ||
} | ||
applyGroupping() { | ||
const groups = this.groupNameStack; | ||
this.addPackage(groups.join('.')); | ||
if (groups.length > 0) { | ||
this.parentSuite(groups[0]); | ||
} | ||
if (groups.length > 1) { | ||
this.suite(groups[1]); | ||
} | ||
if (groups.length > 2) { | ||
this.subSuite(groups[2]); | ||
} | ||
if (groups.length > 3) { | ||
this.currentTest.name = | ||
groups.slice(3).join(' > ') + '>>' + this.currentTest.name; | ||
} | ||
} | ||
// todo type | ||
@@ -150,19 +167,2 @@ endTest(spec) { | ||
} | ||
applyGroupping() { | ||
const groups = this.groupNameStack; | ||
this.addPackage(groups.join('.')); | ||
if (groups.length > 0) { | ||
this.parentSuite(groups[0]); | ||
} | ||
if (groups.length > 1) { | ||
this.suite(groups[1]); | ||
} | ||
if (groups.length > 2) { | ||
this.subSuite(groups[2]); | ||
} | ||
if (groups.length > 3) { | ||
// todo: addition to test name | ||
// this.subSuite(groups.slice(3).join(' > ')); | ||
} | ||
} | ||
endGroup() { | ||
@@ -267,7 +267,2 @@ if (!this.currentGroup) { | ||
} | ||
addPackageByTestPath(relativeFrom, spec) { | ||
const relativePath = path_1.relative(relativeFrom, spec.testPath); | ||
this.addPackage(relativePath); | ||
return this; | ||
} | ||
addParameter(name, value) { | ||
@@ -274,0 +269,0 @@ this.currentExecutable.addParameter(name, value); |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"description": "Allure 2 Adapter for jest", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
40198
12
0
184
939