testcafe-reporter-json
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -18,3 +18,4 @@ "use strict"; | ||
total: 0, | ||
fixtures: [] | ||
fixtures: [], | ||
warnings: [] | ||
}, | ||
@@ -33,15 +34,23 @@ | ||
reportTestDone: function reportTestDone(name, errs, durationMs, unstable, screenshotPath) { | ||
reportTestDone: function reportTestDone(name, testRunInfo) { | ||
var _this = this; | ||
errs = errs.map(function (err) { | ||
var errs = testRunInfo.errs.map(function (err) { | ||
return _this.formatError(err); | ||
}); | ||
this.currentFixture.tests.push({ name: name, errs: errs, durationMs: durationMs, unstable: unstable, screenshotPath: screenshotPath }); | ||
this.currentFixture.tests.push({ | ||
name: name, | ||
errs: errs, | ||
durationMs: testRunInfo.durationMs, | ||
unstable: testRunInfo.unstable, | ||
screenshotPath: testRunInfo.screenshotPath | ||
}); | ||
}, | ||
reportTaskDone: function reportTaskDone(endTime, passed) { | ||
reportTaskDone: function reportTaskDone(endTime, passed, warnings) { | ||
this.report.passed = passed; | ||
this.report.endTime = endTime; | ||
this.report.warnings = warnings; | ||
@@ -48,0 +57,0 @@ this.write(JSON.stringify(this.report, null, 2)); |
{ | ||
"name": "testcafe-reporter-json", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "JSON TestCafe reporter plugin.", | ||
@@ -15,3 +15,5 @@ "repository": "https://github.com/DevExpress/testcafe-reporter-json", | ||
"scripts": { | ||
"test": "gulp test" | ||
"test": "gulp test", | ||
"publish-please": "publish-please", | ||
"prepublish": "publish-please guard" | ||
}, | ||
@@ -27,2 +29,3 @@ "keywords": [ | ||
"babel-eslint": "^4.0.10", | ||
"callsite-record": "^3.2.0", | ||
"del": "^1.2.0", | ||
@@ -34,6 +37,6 @@ "gulp": "^3.9.0", | ||
"normalize-newline": "^1.0.2", | ||
"publish-please": "^1.0.1", | ||
"publish-please": "^2.1.4", | ||
"read-file-relative": "^1.2.0", | ||
"testcafe": "0.0.6-alpha" | ||
"testcafe": "0.2.0-alpha" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
4648
47
11
1