New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@empiricalrun/reporter

Package Overview
Dependencies
Maintainers
0
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@empiricalrun/reporter - npm Package Compare versions

Comparing version 0.6.6 to 0.6.7

6

CHANGELOG.md
# @empiricalrun/reporter
## 0.6.7
### Patch Changes
- 7685b88: feat(reporter): Added platform name in platform-type
## 0.6.6

@@ -4,0 +10,0 @@

4

dist/sink/slack.js

@@ -25,3 +25,3 @@ "use strict";

const message = {
text: `Tests started`,
text: `Tests started for ${(0, utils_1.cleanName)(this.reportSource.platform())}`,
attachments: [

@@ -49,3 +49,3 @@ {

const message = {
text: `Tests were not run`,
text: `Tests were not run for ${(0, utils_1.cleanName)(this.reportSource.platform())}`,
attachments: [

@@ -52,0 +52,0 @@ {

@@ -5,4 +5,5 @@ import { BaseReportSource, Platform, ReportFilter } from "./base";

private runId;
private platformName;
srcFile: string;
constructor(repoName: string, runId: string);
constructor(repoName: string, runId: string, platformName: Platform.Android | Platform.iOS);
platform(): Platform.Android | Platform.iOS;

@@ -9,0 +10,0 @@ reportExists(): boolean;

@@ -13,10 +13,11 @@ "use strict";

runId;
platformName;
srcFile = path_1.default.join(process.cwd(), "test-results", "summary.json");
constructor(repoName, runId) {
constructor(repoName, runId, platformName) {
this.repoName = repoName;
this.runId = runId;
this.platformName = platformName;
}
platform() {
const report = (0, utils_1.parseJsonReport)(this.srcFile);
return report.results.environment.osPlatform.toLowerCase();
return this.platformName;
}

@@ -49,3 +50,3 @@ reportExists() {

buildReportLink(filter) {
const base = `https://reports.empirical.run/${this.repoName}/mobile/${this.runId}/${this.platform()}/index.html`;
const base = `https://reports.empirical.run/${this.repoName}/mobile/${this.runId}/${this.platformName.toLowerCase()}/index.html`;
if (filter && "status" in filter) {

@@ -52,0 +53,0 @@ return `${base}#?q=s:${filter.status}`;

@@ -8,2 +8,3 @@ "use strict";

const appium_1 = require("../sources/appium");
const base_1 = require("../sources/base");
const playwright_1 = require("../sources/playwright");

@@ -29,5 +30,8 @@ const utils_1 = require("../utils");

}
else if (reportType == "appium") {
reportSource = new appium_1.AppiumReportSource(repoName, runId);
else if (reportType == "appium:android") {
reportSource = new appium_1.AppiumReportSource(repoName, runId, base_1.Platform.Android);
}
else if (reportType == "appium:ios") {
reportSource = new appium_1.AppiumReportSource(repoName, runId, base_1.Platform.iOS);
}
else {

@@ -34,0 +38,0 @@ throw Error(`report type (fourth arg) must be "playwright" or "appium".`);

{
"name": "@empiricalrun/reporter",
"version": "0.6.6",
"version": "0.6.7",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc