@empiricalrun/reporter
Advanced tools
Comparing version 0.4.0 to 0.4.1
# @empiricalrun/reporter | ||
## 0.4.1 | ||
### Patch Changes | ||
- 8d94a1c: feat: platform specific report urls for appium | ||
## 0.4.0 | ||
@@ -4,0 +10,0 @@ |
@@ -44,3 +44,5 @@ "use strict"; | ||
buildReportLink(filter) { | ||
const base = `https://reports.empirical.run/${this.repoName}/mobile/${this.runId}/index.html`; | ||
const report = (0, utils_1.parseJsonReport)(this.srcFile); | ||
const platform = report.results.environment.osPlatform.toLowerCase(); | ||
const base = `https://reports.empirical.run/${this.repoName}/mobile/${this.runId}/${platform}/index.html`; | ||
if (filter && "status" in filter) { | ||
@@ -47,0 +49,0 @@ return `${base}#?q=s:${filter.status}`; |
@@ -31,3 +31,7 @@ interface AppiumTest { | ||
tests: AppiumTest[]; | ||
environment: Environment; | ||
} | ||
interface Environment { | ||
osPlatform: string; | ||
} | ||
export interface AppiumTestReport { | ||
@@ -34,0 +38,0 @@ results: AppiumResults; |
{ | ||
"name": "@empiricalrun/reporter", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "registry": "https://registry.npmjs.org/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
21032
453