json-reporter
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="0.1.2"></a> | ||
## [0.1.2](https://github.com/gemini-testing/json-reporter/compare/v0.1.1...v0.1.2) (2017-03-17) | ||
### Bug Fixes | ||
* not attach url in hermione test if it doesn't exists ([39acdf0](https://github.com/gemini-testing/json-reporter/commit/39acdf0)) | ||
<a name="0.1.1"></a> | ||
@@ -7,0 +17,0 @@ ## [0.1.1](https://github.com/gemini-testing/json-reporter/compare/v0.1.0...v0.1.1) (2017-03-15) |
@@ -11,10 +11,14 @@ 'use strict'; | ||
const filePath = getFilePath(result) || ''; | ||
const metaUrl = _.get(result, 'meta.url', ''); | ||
return { | ||
const testResult = { | ||
fullName: result.fullTitle(), | ||
browserId: result.browserId, | ||
file: utils.getRelativePath(filePath), | ||
url: url.parse(metaUrl).path | ||
file: utils.getRelativePath(filePath) | ||
}; | ||
const metaUrl = _.get(result, 'meta.url', ''); | ||
if (!_.isEmpty(metaUrl)) { | ||
testResult.url = url.parse(metaUrl).path; | ||
} | ||
return testResult; | ||
}; | ||
@@ -21,0 +25,0 @@ |
{ | ||
"name": "json-reporter", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Common plugin for gemini and hermione which is intended to aggregate the results of tests running", | ||
@@ -5,0 +5,0 @@ "main": "gemini.js", |
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
13705
181
0