html-reporter
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="0.4.1"></a> | ||
## [0.4.1](https://github.com/gemini-testing/html-reporter/compare/v0.4.0...v0.4.1) (2017-08-29) | ||
### Bug Fixes | ||
* bug with the substitution of the base host through env var ([2b01f9a](https://github.com/gemini-testing/html-reporter/commit/2b01f9a)) | ||
<a name="0.4.0"></a> | ||
@@ -7,0 +17,0 @@ # [0.4.0](https://github.com/gemini-testing/html-reporter/compare/v0.3.0...v0.4.0) (2017-08-27) |
'use strict'; | ||
const _ = require('lodash'); | ||
const Uri = require('urijs'); | ||
const utils = require('../utils'); | ||
@@ -106,4 +107,5 @@ | ||
const browserId = result.browserId; | ||
const suite = result.suite; | ||
const browserConfig = this._toolConfig.forBrowser(browserId); | ||
const suite = result.suite; | ||
const suiteUrl = browserConfig.getAbsoluteUrl(suite.url); | ||
const metaInfo = { | ||
@@ -116,3 +118,3 @@ url: suite.fullUrl, | ||
const testResult = _.assign({ | ||
suiteUrl: browserConfig.getAbsoluteUrl(suite.url), | ||
suiteUrl: this._configureSuiteUrl(suiteUrl), | ||
name: browserId, | ||
@@ -142,2 +144,8 @@ metaInfo: JSON.stringify(metaInfo, null, 4) || 'Meta info is not available' | ||
_configureSuiteUrl(suiteUrl) { | ||
return _.isEmpty(this._pluginConfig.baseHost) | ||
? suiteUrl | ||
: Uri(this._pluginConfig.baseHost).resource(suiteUrl).href(); | ||
} | ||
static hasFails(node) { | ||
@@ -144,0 +152,0 @@ return walk(node, ViewModel.hasFails, node.result && (node.result.error || node.result.fail)); |
{ | ||
"name": "html-reporter", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Plugin for gemini which is intended to aggregate the results of tests running into html report", | ||
@@ -42,3 +42,4 @@ "main": "index.js", | ||
"lodash": "^4.17.4", | ||
"uglify-js": "^2.7.3" | ||
"uglify-js": "^2.7.3", | ||
"urijs": "^1.18.12" | ||
}, | ||
@@ -45,0 +46,0 @@ "devDependencies": { |
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
75276
803
10
+ Addedurijs@^1.18.12
+ Addedurijs@1.19.11(transitive)