jest-allure2-adapter
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -27,2 +27,3 @@ /// <reference types="node" /> | ||
endStep(status?: Status, stage?: Stage, details?: StatusDetails | any, end?: number): void; | ||
setHistoryId(fullName: string): void; | ||
endTest(spec: jasmine_.CustomReporterResult): void; | ||
@@ -29,0 +30,0 @@ endGroup(): void; |
@@ -114,2 +114,7 @@ "use strict"; | ||
} | ||
setHistoryId(fullName) { | ||
const getUuid = require('uuid-by-string'); | ||
const id = getUuid(fullName); | ||
this.currentTest.historyId = id; | ||
} | ||
endTest(spec) { | ||
@@ -154,2 +159,3 @@ this.endSteps(); | ||
this.applyDescription(); | ||
this.setHistoryId(spec.fullName); | ||
this.currentTest.endTest(); | ||
@@ -156,0 +162,0 @@ } |
@@ -26,10 +26,10 @@ "use strict"; | ||
function getContent(content, type) { | ||
if (typeof content !== 'string' && type === allure_js_commons_1.ContentType.JSON) { | ||
return JSON.stringify(content); | ||
} | ||
if (typeof content === 'string') { | ||
return stripAnsi(content); | ||
} | ||
if (type === allure_js_commons_1.ContentType.JSON) { | ||
return JSON.stringify(content); | ||
} | ||
return content; | ||
} | ||
exports.getContent = getContent; |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "Allure 2 Adapter for jest", | ||
@@ -46,4 +46,5 @@ "main": "./dist/index", | ||
"allure-js-commons": "^2.0.0-beta.8", | ||
"strip-ansi": "^6.0.0" | ||
"strip-ansi": "^6.0.0", | ||
"uuid-by-string": "^3.0.2" | ||
} | ||
} |
@@ -265,4 +265,5 @@ # Jest-Allure-2 reporting plugin | ||
- [x] Ability to config (timestamp to step, jira link) (0.2.53) | ||
- [ ] historyId? | ||
- [x] historyId (group retries) | ||
- [ ] Add param to stepStatus to add attachment with details or not | ||
- [ ] Cleanup statusDetails | ||
@@ -292,2 +293,6 @@ --- | ||
#### 0.3.5: | ||
- fixed grouping into retries | ||
#### 0.3.0: | ||
@@ -294,0 +299,0 @@ |
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
236107
17
5905
354
6
1
+ Addeduuid-by-string@^3.0.2
+ Addedjs-md5@0.7.3(transitive)
+ Addedjs-sha1@0.6.0(transitive)
+ Addeduuid-by-string@3.0.7(transitive)