Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loadmill

Package Overview
Dependencies
Maintainers
3
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loadmill - npm Package Compare versions

Comparing version 3.0.8 to 3.1.0

21

lib/reporter.js

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

flowResult = function (f) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
var flowRun, url, body;
var url, flowRunDetails, flowRun;
var _a;

@@ -29,2 +29,6 @@ return tslib_1.__generator(this, function (_b) {

case 0:
url = getFlowRunAPI(f);
return [4 /*yield*/, superagent.get(url).auth(token, '')];
case 1:
flowRunDetails = (_b.sent()).body;
flowRun = {

@@ -34,14 +38,11 @@ 'testcase': [{

name: f.description,
status: f.status
status: f.status,
time: (+flowRunDetails.endTime - +flowRunDetails.startTime) / 1000
}
}]
};
if (!(f.status === "FAILED")) return [3 /*break*/, 2];
url = getFlowRunAPI(f);
return [4 /*yield*/, superagent.get(url).auth(token, '')];
case 1:
body = (_b.sent()).body;
(_a = flowRun.testcase).push.apply(_a, toFailedJUnitFlowRunReport(body));
_b.label = 2;
case 2: return [2 /*return*/, flowRun];
if (f.status === "FAILED") {
(_a = flowRun.testcase).push.apply(_a, toFailedJUnitFlowRunReport(flowRunDetails));
}
return [2 /*return*/, flowRun];
}

@@ -48,0 +49,0 @@ });

{
"name": "loadmill",
"version": "3.0.8",
"version": "3.1.0",
"description": "A node.js module for running load tests and functional tests on loadmill.com",

@@ -48,5 +48,5 @@ "keywords": [

"husky": "^4.2.1",
"mocha": "^7.0.0",
"mocha": "^9.2.2",
"typescript": "^4.3.2"
}
}

@@ -19,2 +19,4 @@ import * as fs from "fs";

const flowResult = async (f: Loadmill.FlowRun) => {
const url = getFlowRunAPI(f);
const { body: flowRunDetails } = await superagent.get(url).auth(token, '');
const flowRun: any = {

@@ -24,3 +26,4 @@ 'testcase': [{

name: f.description,
status: f.status
status: f.status,
time: (+flowRunDetails.endTime - +flowRunDetails.startTime)/1000,
}

@@ -31,5 +34,3 @@ }]

if (f.status === "FAILED") {
const url = getFlowRunAPI(f);
const { body } = await superagent.get(url).auth(token, '');
flowRun.testcase.push(...toFailedJUnitFlowRunReport(body));
flowRun.testcase.push(...toFailedJUnitFlowRunReport(flowRunDetails));
}

@@ -36,0 +37,0 @@ return flowRun;

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