html-reporter
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="1.1.0"></a> | ||
# [1.1.0](https://github.com/gemini-testing/html-reporter/compare/v1.0.0...v1.1.0) (2017-12-04) | ||
### Features | ||
* make url in meta-info clickable ([076f817](https://github.com/gemini-testing/html-reporter/commit/076f817)) | ||
<a name="1.0.0"></a> | ||
@@ -7,0 +17,0 @@ # [1.0.0](https://github.com/gemini-testing/html-reporter/compare/v0.5.0...v1.0.0) (2017-10-19) |
@@ -103,4 +103,5 @@ 'use strict'; | ||
const suiteUrl = browserConfig.getAbsoluteUrl(suite.url); | ||
const metaInfo = { | ||
url: suite.fullUrl, | ||
url: mkLinkToUrl(suiteUrl, suite.fullUrl), | ||
file: suite.file, | ||
@@ -113,3 +114,3 @@ sessionId: result.sessionId || 'unknown session id' | ||
name: browserId, | ||
metaInfo: JSON.stringify(metaInfo, null, 4) || 'Meta info is not available' | ||
metaInfo: stringifyMeta(metaInfo) || 'Meta info is not available' | ||
}, props); | ||
@@ -176,2 +177,6 @@ | ||
function mkLinkToUrl(url, text) { | ||
return `<a data-suite-view-link="${url}" class="section__icon_view-local" target="_blank" href="${url}">${text}</a>`; | ||
} | ||
function wrapLinkByTag(text) { | ||
@@ -182,1 +187,7 @@ return text.replace(/https?:\/\/[^\s]*/g, (url) => { | ||
} | ||
function stringifyMeta(obj) { | ||
return _(obj) | ||
.map((value, key) => `<div class="meta-info__item"><span class="meta-info__item-key">${key}</span>: ${value}</div>`) | ||
.join(''); | ||
} |
{ | ||
"name": "html-reporter", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Plugin for gemini which is intended to aggregate the results of tests running into html report", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
0
3
182374
18
816