jest-allure2-adapter
Advanced tools
Comparing version 0.2.34 to 0.2.35
@@ -109,15 +109,24 @@ "use strict"; | ||
step.statusDetails = this.currentStepStatus.details; | ||
// todo: status details does not work in report | ||
this.stepAttachement('statusDetails2', JSON.stringify(this.currentStepStatus.details, undefined, ' '), allure_js_commons_1.ContentType.JSON); | ||
this.stepAttachement('statusDetailsCsv', `${this.currentStepStatus.details.message}\n${this.currentStepStatus.details.trace}`, allure_js_commons_1.ContentType.CSV); | ||
step.descriptionHtml = 'Description html '; | ||
step.detailsMessage = | ||
this.currentStepStatus.details.message || 'no details'; | ||
step.description = 'asdadsda decsr'; | ||
// todo: status details does not work in report, workaround below | ||
const file = this.runtime.writeAttachment(JSON.stringify(this.currentStepStatus.details, undefined, ' '), allure_js_commons_1.ContentType.JSON); | ||
this.currentExecutable.addAttachment(name, allure_js_commons_1.ContentType.JSON, file); | ||
/*step.addAttachment( | ||
'statusDetails2', | ||
JSON.stringify(this.currentStepStatus.details, undefined, ' '), | ||
ContentType.JSON, | ||
); | ||
this.addAttachment( | ||
'statusDetailsCsv', | ||
`${this.currentStepStatus.details.message}\n${this.currentStepStatus.details.trace}`, | ||
ContentType.CSV, | ||
);*/ | ||
/* | ||
if (this.currentStepStatus.details.message) { | ||
step.addParameter('message', this.currentStepStatus.details.message); | ||
step.addParameter('message', this.currentStepStatus.details.message); | ||
} | ||
if (this.currentStepStatus.details.trace) { | ||
step.addParameter('trace', this.currentStepStatus.details.trace); | ||
} | ||
step.addParameter('trace', this.currentStepStatus.details.trace); | ||
}*/ | ||
} | ||
@@ -124,0 +133,0 @@ } |
{ | ||
"name": "jest-allure2-adapter", | ||
"version": "0.2.34", | ||
"version": "0.2.35", | ||
"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
50565
1159