wdio-ctrf-json-reporter
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -55,3 +55,2 @@ "use strict"; | ||
onSuiteStart(suite) { | ||
fs.writeFileSync('suitestats.json', JSON.stringify(suite)); | ||
this.currentSuite = suite.fullTitle; | ||
@@ -77,3 +76,2 @@ this.currentSpecFile = suite.file; | ||
onRunnerEnd(runner) { | ||
fs.writeFileSync('runner-stats.json', JSON.stringify(runner)); | ||
this.ctrfReport.results.summary.stop = Date.now(); | ||
@@ -120,3 +118,2 @@ const specFilePath = runner.specs[0]; | ||
var _a, _b; | ||
fs.writeFileSync('teststats.json', JSON.stringify(test)); | ||
const ctrfTest = { | ||
@@ -135,4 +132,4 @@ name: test.title, | ||
ctrfTest.type = (_a = this.reporterConfigOptions.testType) !== null && _a !== void 0 ? _a : 'e2e'; | ||
ctrfTest.retry = test.retries; | ||
ctrfTest.flake = test.state === 'passed' && ((_b = test.retries) !== null && _b !== void 0 ? _b : 0) > 0; | ||
ctrfTest.retries = test.retries; | ||
ctrfTest.flaky = test.state === 'passed' && ((_b = test.retries) !== null && _b !== void 0 ? _b : 0) > 0; | ||
ctrfTest.suite = this.currentSuite; | ||
@@ -139,0 +136,0 @@ ctrfTest.filePath = this.currentSpecFile; |
{ | ||
"name": "wdio-ctrf-json-reporter", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
20898
235