Comparing version 3.1.0 to 3.2.0
@@ -40,2 +40,3 @@ import './polyfills'; | ||
labels?: string[] | null; | ||
labelsExpression?: string; | ||
fetchFlowRuns?: boolean; | ||
@@ -42,0 +43,0 @@ pool?: string; |
@@ -149,3 +149,3 @@ "use strict"; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var testPlanId, overrideParameters, labels, additionalDescription, pool, parallel, branch, maxFlakyFlowRetries, _b, testPlanRunId, err; | ||
var testPlanId, overrideParameters, labels, labelsExpression, additionalDescription, pool, parallel, branch, maxFlakyFlowRetries, _b, testPlanRunId, err; | ||
return tslib_1.__generator(this, function (_c) { | ||
@@ -157,2 +157,3 @@ switch (_c.label) { | ||
labels = testPlan.options && testPlan.options.labels && utils_1.filterLabels(testPlan.options.labels); | ||
labelsExpression = testPlan.options && testPlan.options.labelsExpression; | ||
additionalDescription = testPlan.options && testPlan.options.additionalDescription; | ||
@@ -164,3 +165,3 @@ pool = testPlan.options && testPlan.options.pool; | ||
return [4 /*yield*/, superagent.post(testPlansAPI + "/" + testPlanId + "/run") | ||
.send({ overrideParameters: overrideParameters, additionalDescription: additionalDescription, labels: labels, pool: pool, parallel: parallel, branch: branch, maxFlakyFlowRetries: maxFlakyFlowRetries }) | ||
.send({ overrideParameters: overrideParameters, additionalDescription: additionalDescription, labels: labels, pool: pool, parallel: parallel, branch: branch, maxFlakyFlowRetries: maxFlakyFlowRetries, labelsExpression: labelsExpression }) | ||
.auth(token, '')]; | ||
@@ -167,0 +168,0 @@ case 1: |
@@ -20,2 +20,3 @@ "use strict"; | ||
.option("--labels <labels>", "Run flows that are assigned to a specific label (when running a test suite).. Multiple labels can be provided by seperated them with ',' (e.g. 'label1,label2').") | ||
.option("--labels-expression <labelsExpression>", "Run a test plan's suites with flows that match the labels expression. An expression may contain the characters ( ) & | ! (e.g. '(label1 | label2) & !label3')") | ||
.option("--pool <pool>", "Execute tests from a dedicated agent's pool (when using private agent)") | ||
@@ -42,7 +43,7 @@ .option("-w, --wait", "Wait for the test to finish.") | ||
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, branch, retryFailedFlows, parametersFile, _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, labelsExpression, pool, branch, retryFailedFlows, parametersFile, _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, branch = program.branch, retryFailedFlows = program.retryFailedFlows, parametersFile = program.parametersFile, _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, labelsExpression = program.labelsExpression, pool = program.pool, branch = program.branch, retryFailedFlows = program.retryFailedFlows, parametersFile = program.parametersFile, _a = program.args, input = _a[0], rawParams = _a.slice(1); | ||
logger = utils_1.getLogger({ verbose: verbose, colors: colors }); | ||
@@ -76,2 +77,3 @@ if (!token) { | ||
labels: labels, | ||
labelsExpression: labelsExpression, | ||
pool: pool, | ||
@@ -166,2 +168,3 @@ branch: branch, | ||
labels: planLabels, | ||
labelsExpression: labelsExpression, | ||
pool: pool, | ||
@@ -168,0 +171,0 @@ parallel: parallel, |
{ | ||
"name": "loadmill", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "A node.js module for running load tests and functional tests on loadmill.com", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -246,2 +246,3 @@ # Loadmill | ||
- `--labels <labels>`, Run flows that are assigned to a specific label. Multiple labels can be provided by seperated them with "," (e.g. 'label1,label2'). | ||
- `--labels-expression <labelsExpression>`, Run a test plan's suites with flows that match the labels expression. An expression may contain the characters ( ) & | ! (e.g. '(label1 | label2) & !label3') | ||
- `--pool <pool>` Execute tests from a dedicated agent's pool (when using private agent). | ||
@@ -248,0 +249,0 @@ - `-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. |
@@ -153,2 +153,3 @@ import './polyfills' | ||
const labels = testPlan.options && testPlan.options.labels && filterLabels(testPlan.options.labels); | ||
const labelsExpression = testPlan.options && testPlan.options.labelsExpression; | ||
const additionalDescription = testPlan.options && testPlan.options.additionalDescription; | ||
@@ -165,3 +166,3 @@ const pool = testPlan.options && testPlan.options.pool; | ||
} = await superagent.post(`${testPlansAPI}/${testPlanId}/run`) | ||
.send({ overrideParameters, additionalDescription, labels, pool, parallel, branch, maxFlakyFlowRetries }) | ||
.send({ overrideParameters, additionalDescription, labels, pool, parallel, branch, maxFlakyFlowRetries, labelsExpression }) | ||
.auth(token, ''); | ||
@@ -401,2 +402,3 @@ | ||
labels?: string[] | null; | ||
labelsExpression?: string; | ||
fetchFlowRuns?: boolean; | ||
@@ -403,0 +405,0 @@ pool?: string; |
@@ -30,2 +30,3 @@ import * as Loadmill from './index'; | ||
.option("--labels <labels>", "Run flows that are assigned to a specific label (when running a test suite).. Multiple labels can be provided by seperated them with ',' (e.g. 'label1,label2').") | ||
.option("--labels-expression <labelsExpression>", "Run a test plan's suites with flows that match the labels expression. An expression may contain the characters ( ) & | ! (e.g. '(label1 | label2) & !label3')") | ||
.option("--pool <pool>", "Execute tests from a dedicated agent's pool (when using private agent)") | ||
@@ -72,2 +73,3 @@ .option("-w, --wait", "Wait for the test to finish.") | ||
labels, | ||
labelsExpression, | ||
pool, | ||
@@ -112,2 +114,3 @@ branch, | ||
labels, | ||
labelsExpression, | ||
pool, | ||
@@ -205,2 +208,3 @@ branch, | ||
labels: planLabels, | ||
labelsExpression, | ||
pool, | ||
@@ -207,0 +211,0 @@ parallel, |
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
142964
2808
260