jest-allure2-adapter
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -18,3 +18,3 @@ /// <reference types="node" /> | ||
startGroup(name: string): void; | ||
startTest(name?: string): void; | ||
startTest(spec: any): void; | ||
startStep(name: string): AllureStep; | ||
@@ -66,3 +66,10 @@ endStep(status?: Status, stage?: Stage): void; | ||
owner(owner: string): void; | ||
lead(lead: string): void; | ||
framework(framework: string): void; | ||
language(language: string): void; | ||
as_id(id: string): void; | ||
host(host: string): void; | ||
testClass(testClass: string): void; | ||
testMethod(testMethod: string): void; | ||
severity(severity: Severity): void; | ||
} |
@@ -65,4 +65,5 @@ "use strict"; | ||
// todo decorators | ||
startTest(name) { | ||
this.runningTest = this.currentGroup.startTest(name); | ||
startTest(spec) { | ||
this.runningTest = this.currentGroup.startTest(spec.description); | ||
this.runningTest.fullName = spec.fullName; | ||
// Capture Jest worker thread for timeline report | ||
@@ -349,2 +350,23 @@ if (process.env.JEST_WORKER_ID) { | ||
} | ||
lead(lead) { | ||
super.label(allure_js_commons_1.LabelName.LEAD, lead); | ||
} | ||
framework(framework) { | ||
super.label(allure_js_commons_1.LabelName.FRAMEWORK, framework); | ||
} | ||
language(language) { | ||
super.label(allure_js_commons_1.LabelName.LANGUAGE, language); | ||
} | ||
as_id(id) { | ||
super.label(allure_js_commons_1.LabelName.AS_ID, id); | ||
} | ||
host(host) { | ||
super.label(allure_js_commons_1.LabelName.HOST, host); | ||
} | ||
testClass(testClass) { | ||
super.label(allure_js_commons_1.LabelName.TEST_CLASS, testClass); | ||
} | ||
testMethod(testMethod) { | ||
super.label(allure_js_commons_1.LabelName.TEST_METHOD, testMethod); | ||
} | ||
severity(severity) { | ||
@@ -351,0 +373,0 @@ super.severity(severity); |
@@ -26,3 +26,3 @@ "use strict"; | ||
specStarted(spec) { | ||
this.allure.startTest(spec.description); | ||
this.allure.startTest(spec); | ||
} | ||
@@ -29,0 +29,0 @@ specDone(spec) { |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"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
35212
948