Comparing version 3.0.3 to 3.0.4
@@ -42,2 +42,3 @@ import './polyfills'; | ||
parallel?: number | string; | ||
branch?: string; | ||
} | ||
@@ -44,0 +45,0 @@ interface TestResult extends TestDef { |
@@ -146,3 +146,3 @@ "use strict"; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var testPlanId, overrideParameters, labels, additionalDescription, pool, parallel, _a, testPlanRunId, err; | ||
var testPlanId, overrideParameters, labels, additionalDescription, pool, parallel, branch, _a, testPlanRunId, err; | ||
return tslib_1.__generator(this, function (_b) { | ||
@@ -157,4 +157,5 @@ switch (_b.label) { | ||
parallel = testPlan.options && testPlan.options.parallel; | ||
branch = testPlan.options && testPlan.options.branch; | ||
return [4 /*yield*/, superagent.post(testPlansAPI + "/" + testPlanId + "/run") | ||
.send({ overrideParameters: overrideParameters, additionalDescription: additionalDescription, labels: labels, pool: pool, parallel: parallel }) | ||
.send({ overrideParameters: overrideParameters, additionalDescription: additionalDescription, labels: labels, pool: pool, parallel: parallel, branch: branch }) | ||
.auth(token, '')]; | ||
@@ -161,0 +162,0 @@ case 1: |
@@ -31,2 +31,3 @@ "use strict"; | ||
.option("--colors", "Print test results in color") | ||
.option("-b, --branch <branch>", "Run the test plan's suites from a GitHub branch. The latest version of the selected Git branch will be used as the test configuration for the chosen Test Plan") | ||
.parse(process.argv); | ||
@@ -39,7 +40,7 @@ start()["catch"](function (err) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var wait, bail, quiet, token, verbose, colors, report, junitReport, junitReportPath, mochawesomeReport, mochawesomeReportPath, parallel, loadTest, testPlan, additionalDescription, labels, pool, _a, input, rawParams, logger, parameters, testSuite, loadmill, testFailed, res, suiteLabels, running, e_1, extInfo, planLabels, running, e_2, extInfo, fileOrFolder, listOfFiles, _i, listOfFiles_1, file, res_1, id; | ||
var wait, bail, quiet, token, verbose, colors, report, junitReport, junitReportPath, mochawesomeReport, mochawesomeReportPath, parallel, loadTest, testPlan, additionalDescription, labels, pool, branch, _a, input, rawParams, logger, parameters, testSuite, loadmill, testFailed, res, suiteLabels, running, e_1, extInfo, planLabels, running, e_2, extInfo, fileOrFolder, listOfFiles, _i, listOfFiles_1, file, res_1, id; | ||
return tslib_1.__generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: | ||
wait = program.wait, bail = program.bail, quiet = program.quiet, token = program.token, verbose = program.verbose, colors = program.colors, report = program.report, junitReport = program.junitReport, junitReportPath = program.junitReportPath, mochawesomeReport = program.mochawesomeReport, mochawesomeReportPath = program.mochawesomeReportPath, parallel = program.parallel, loadTest = program.loadTest, testPlan = program.testPlan, additionalDescription = program.additionalDescription, labels = program.labels, pool = program.pool, _a = program.args, input = _a[0], rawParams = _a.slice(1); | ||
wait = program.wait, bail = program.bail, quiet = program.quiet, token = program.token, verbose = program.verbose, colors = program.colors, report = program.report, junitReport = program.junitReport, junitReportPath = program.junitReportPath, mochawesomeReport = program.mochawesomeReport, mochawesomeReportPath = program.mochawesomeReportPath, parallel = program.parallel, loadTest = program.loadTest, testPlan = program.testPlan, additionalDescription = program.additionalDescription, labels = program.labels, pool = program.pool, branch = program.branch, _a = program.args, input = _a[0], rawParams = _a.slice(1); | ||
logger = utils_1.getLogger({ verbose: verbose, colors: colors }); | ||
@@ -74,2 +75,3 @@ if (!token) { | ||
pool: pool, | ||
branch: branch, | ||
parameters: parameters | ||
@@ -162,3 +164,4 @@ }); | ||
pool: pool, | ||
parallel: parallel | ||
parallel: parallel, | ||
branch: branch | ||
} | ||
@@ -165,0 +168,0 @@ }, parameters)]; |
{ | ||
"name": "loadmill", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "A node.js module for running load tests and functional tests on loadmill.com", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -149,3 +149,3 @@ import './polyfills' | ||
const parallel = testPlan.options && testPlan.options.parallel; | ||
const branch = testPlan.options && testPlan.options.branch; | ||
const { | ||
@@ -157,3 +157,3 @@ body: { | ||
} = await superagent.post(`${testPlansAPI}/${testPlanId}/run`) | ||
.send({ overrideParameters, additionalDescription, labels, pool, parallel }) | ||
.send({ overrideParameters, additionalDescription, labels, pool, parallel, branch }) | ||
.auth(token, ''); | ||
@@ -387,2 +387,3 @@ | ||
parallel?: number | string; | ||
branch?: string; | ||
} | ||
@@ -389,0 +390,0 @@ export interface TestResult extends TestDef { |
@@ -34,2 +34,3 @@ import * as Loadmill from './index'; | ||
.option("--colors", "Print test results in color") | ||
.option("-b, --branch <branch>", "Run the test plan's suites from a GitHub branch. The latest version of the selected Git branch will be used as the test configuration for the chosen Test Plan") | ||
.parse(process.argv); | ||
@@ -63,2 +64,3 @@ | ||
pool, | ||
branch, | ||
args: [input, ...rawParams] | ||
@@ -100,2 +102,3 @@ } = program; | ||
pool, | ||
branch, | ||
parameters, | ||
@@ -191,3 +194,4 @@ }); | ||
pool, | ||
parallel | ||
parallel, | ||
branch | ||
} | ||
@@ -194,0 +198,0 @@ }, |
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
136278
19
2691