jest-allure2-adapter
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -14,2 +14,5 @@ /// <reference types="node" /> | ||
private featureProps; | ||
private frameworkProps; | ||
private languageProps; | ||
private hostProps; | ||
private environmentInfo; | ||
@@ -16,0 +19,0 @@ private test_; |
@@ -31,2 +31,5 @@ "use strict"; | ||
this.featureProps = new test_suite_props_1.TestSuiteProps(); | ||
this.frameworkProps = new test_suite_props_1.TestSuiteProps(); | ||
this.languageProps = new test_suite_props_1.TestSuiteProps(); | ||
this.hostProps = new test_suite_props_1.TestSuiteProps(); | ||
this.environmentInfo = {}; | ||
@@ -76,2 +79,7 @@ this.test_ = new allure_current_1.AllureCurrent(this.runtime, () => this.currentTest); | ||
} | ||
this.framework('jest'); | ||
this.language('typescript/javascript'); | ||
const os = require('os'); | ||
const hostname = os.hostname(); | ||
this.host(hostname); | ||
this.applyGroupping(); | ||
@@ -162,4 +170,7 @@ } | ||
this.storyProps.apply((a) => super.story(a)); | ||
this.frameworkProps.apply((a) => super.label(allure_js_commons_1.LabelName.FRAMEWORK, a)); | ||
this.languageProps.apply((a) => super.label(allure_js_commons_1.LabelName.LANGUAGE, a)); | ||
this.hostProps.apply((a) => super.label(allure_js_commons_1.LabelName.HOST, a)); | ||
this.applyDescription(); | ||
if (((_a = this.config) === null || _a === void 0 ? void 0 : _a.historyIdByName) !== false) { | ||
if (((_a = this.config) === null || _a === void 0 ? void 0 : _a.autoHistoryId) !== false) { | ||
this.setHistoryId(spec.fullName); | ||
@@ -311,6 +322,6 @@ } | ||
framework(framework) { | ||
super.label(allure_js_commons_1.LabelName.FRAMEWORK, framework); | ||
this.frameworkProps.testProp = framework; | ||
} | ||
language(language) { | ||
super.label(allure_js_commons_1.LabelName.LANGUAGE, language); | ||
this.languageProps.testProp = language; | ||
} | ||
@@ -321,3 +332,3 @@ as_id(id) { | ||
host(host) { | ||
super.label(allure_js_commons_1.LabelName.HOST, host); | ||
this.hostProps.testProp = host; | ||
} | ||
@@ -324,0 +335,0 @@ testClass(testClass) { |
@@ -87,3 +87,3 @@ /// <reference types="node" /> | ||
addStepStatusDetailsAttachment?: boolean; | ||
historyIdByName?: boolean; | ||
autoHistoryId?: boolean; | ||
tmsLink?: (id: string) => string; | ||
@@ -90,0 +90,0 @@ issueLink?: (id: string) => string; |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Allure 2 Adapter for jest", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index", |
@@ -145,2 +145,5 @@ # Jest-Allure-2 reporting plugin | ||
setFullName(fullName: string): void; | ||
setHistoryId(uid: string): void; | ||
addPackage(value: string): this; | ||
@@ -293,6 +296,9 @@ addLink(options: { name?: string; url: string; type?: LinkType }): this; | ||
#### 0.3.6: | ||
#### 0.3.7: | ||
- framework label = 'jest' to tests by default (can be overridden) | ||
- language label = 'typescript/javascript' to tests by default (can be overridden) | ||
- host label to tests by default (can be overridden) | ||
- ability to setup historyId and fullName | ||
- added historyIdByName into config (when false need to setup historyId manually to have correct retries, by default it is true and historyId is being generated by spec full name) | ||
- added autoHistoryId into config (when false need to setup historyId manually to have correct retries, by default it is true and historyId is being generated from spec full name) | ||
@@ -299,0 +305,0 @@ #### 0.3.5: |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2951111
52003
365
0