@mablhq/mabl-cli 2.60.1 → 2.60.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/commands/constants.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommandArgMablBranchChangesOnly = exports.CommandArgMablBranch = exports.CommandArgMablAutoLogin = exports.CommandArgMablAutoBranch = exports.CommandArgLinkBypass = exports.CommandArgLinkLabel = exports.CommandArgLimitOutput = exports.CommandArgLabels = exports.CommandArgLabelsInclude = exports.CommandArgLabelsExclude = exports.CommandArgTestInteractionSpeed = exports.CommandArgTestRunId = exports.CommandArgTestFile = exports.CommandArgKeepBrowserOpen = exports.CommandArgInput = exports.CommandArgIncludedTests = exports.CommandArgIncludeDefaults = exports.CommandArgId = exports.CommandArgUserAgent = exports.CommandArgHttpHeaders = exports.CommandArgHelp = exports.CommandArgHeadless = exports.CommandArgFromPlanId = exports.CommandArgFrom = exports.CommandArgFormat = exports.CommandArgFindPath = exports.CommandArgFastFailure = exports.CommandArgOverrideEnvironmentId = exports.CommandArgGrep = exports.CommandArgExtraArguments = exports.CommandArgExistingReport = exports.CommandArgExcludedTests = exports.CommandArgEnvironmentId = exports.CommandArgDetailLevel = exports.CommandArgDestination = exports.CommandArgDescription = exports.CommandArgDeploymentId = exports.CommandArgDecrypt = exports.CommandArgDebug = exports.CommandArgDataTables = exports.CommandArgDataTableId = exports.CommandArgCredentials = exports.CommandArgBasicAuthCredentials = exports.CommandArgBrowsers = exports.CommandArgBrowser = exports.CommandArgBranch = exports.CommandArgAuto = exports.CommandArgApplicationId = exports.CommandArgApiKey = exports.CommandArgABConfigFile = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.SCENARIO_ID_HEADER = exports.SCENARIO_NAME_HEADER = exports.ValidBrowserTypesForLocalRuns = exports.BrowserTypeSelections = void 0;
|
|
4
|
+
exports.DefaultBranchName = exports.DefaultOutputFormatChoices = exports.DetailLevelFormats = exports.Reporter = exports.OutputFormats = exports.CommandArgAliases = exports.CommandArgBrowserEnableExtensions = exports.CommandArgBrowserIgnoreCertificateErrors = exports.CommandArgBrowserDisableIsolation = exports.ListTimeFormat = exports.CommandArgVerbose = exports.CommandArgTimezoneID = exports.CommandArgLocale = exports.CommandArgUseTestExecutionProxy = exports.CommandArgScenarioId = exports.CommandArgReporterOptions = exports.CommandArgReporter = exports.CommandArgWorkspaceId = exports.CommandArgVersion = exports.CommandArgVariables = exports.CommandArgUrlApi = exports.CommandArgUrlApp = exports.CommandArgUrl = exports.CommandArgTo = exports.CommandArgTrainerVersion = exports.CommandArgTraceFile = exports.CommandArgTracesPath = exports.CommandArgTestPath = exports.CommandArgSilent = exports.CommandArgRevision = exports.CommandArgRecordVideoPath = exports.CommandArgMaxHeartbeatAge = exports.CommandArgPlanId = exports.CommandArgContentTypes = exports.CommandArgPreview = exports.CommandArgPath = exports.CommandArgOutputFilePath = exports.CommandArgOutput = exports.CommandArgNoPrompt = exports.CommandArgPrompt = exports.CommandArgProject = exports.CommandArgPortNumber = exports.CommandArgName = exports.CommandArgMobileDeviceName = exports.CommandArgMobilePlatform = exports.CommandArgMobileBuildFileId = exports.CommandArgMobileBuildFilePath = exports.CommandArgiOSdMobileAppFileId = exports.CommandArgAndroidMobileAppFileId = exports.CommandArgMulti = void 0;
|
|
5
|
+
exports.SCENARIO_ID_HEADER = exports.SCENARIO_NAME_HEADER = exports.ValidBrowserTypesForLocalRuns = exports.BrowserTypeSelections = exports.DefaultBrowserType = void 0;
|
|
6
6
|
const browserTypes_1 = require("./browserTypes");
|
|
7
7
|
exports.CommandArgABConfigFile = 'ab-config-file';
|
|
8
8
|
exports.CommandArgApiKey = 'api-key';
|
|
@@ -93,6 +93,7 @@ exports.CommandArgScenarioId = 'scenario-id';
|
|
|
93
93
|
exports.CommandArgUseTestExecutionProxy = 'use-test-execution-proxy';
|
|
94
94
|
exports.CommandArgLocale = 'locale';
|
|
95
95
|
exports.CommandArgTimezoneID = 'timezone-id';
|
|
96
|
+
exports.CommandArgVerbose = 'verbose';
|
|
96
97
|
exports.ListTimeFormat = 'MMM Do YYYY, HH:mm:ss';
|
|
97
98
|
exports.CommandArgBrowserDisableIsolation = 'browser-disable-isolation';
|
|
98
99
|
exports.CommandArgBrowserIgnoreCertificateErrors = 'browser-ignore-certificate-errors';
|
|
@@ -193,6 +193,12 @@ Note: Setting the environment does not override the default URL. Please use the
|
|
|
193
193
|
describe: 'Route test HTTP traffic through a local proxy',
|
|
194
194
|
type: 'boolean',
|
|
195
195
|
hidden: true,
|
|
196
|
+
})
|
|
197
|
+
.option(constants_1.CommandArgVerbose, {
|
|
198
|
+
describe: 'Enable verbose output',
|
|
199
|
+
type: 'boolean',
|
|
200
|
+
default: false,
|
|
201
|
+
hidden: true,
|
|
196
202
|
})
|
|
197
203
|
.check((argv) => {
|
|
198
204
|
(0, testsUtil_1.validateRunCommandWithLabels)(argv[constants_1.CommandArgId], argv[constants_1.CommandArgLabelsInclude], argv[constants_1.CommandArgLabelsExclude], argv[constants_1.CommandArgTestRunId], argv[constants_1.CommandArgFromPlanId], true, argv[constants_1.CommandArgTestFile]);
|
|
@@ -291,7 +297,7 @@ async function run(parsed) {
|
|
|
291
297
|
});
|
|
292
298
|
}
|
|
293
299
|
const apiClient = await mablApiClientFactory_1.MablApiClientFactory.createApiClient();
|
|
294
|
-
await (0, runUtils_1.logTestResults)(results, parsed, commandStartTime, generateRunCommandTemplate(parsed, results), apiClient, workspaceId, browserType);
|
|
300
|
+
await (0, runUtils_1.logTestResults)(results, parsed, commandStartTime, generateRunCommandTemplate(parsed, results), apiClient, workspaceId, browserType, parsed[constants_1.CommandArgVerbose]);
|
|
295
301
|
if (!testRunnerConfig.keepBrowserOpen) {
|
|
296
302
|
if (!results.success) {
|
|
297
303
|
process.exit(1);
|
|
@@ -9,7 +9,7 @@ const loggingProvider_1 = require("../../../providers/logging/loggingProvider");
|
|
|
9
9
|
const reporter_1 = require("../../../reporters/reporter");
|
|
10
10
|
const testsUtil_1 = require("../testsUtil");
|
|
11
11
|
const execution_1 = require("../../../execution");
|
|
12
|
-
async function logTestResults(results, parsed, commandStartTime, rerunCommandTemplate, apiClient, workspaceId, browser) {
|
|
12
|
+
async function logTestResults(results, parsed, commandStartTime, rerunCommandTemplate, apiClient, workspaceId, browser, verbose) {
|
|
13
13
|
loggingProvider_1.logger.logNewLine();
|
|
14
14
|
loggingProvider_1.logger.info(`Test count: ${results.numTotalTests}`);
|
|
15
15
|
loggingProvider_1.logger.info(`Passed: ${results.numPassedTests}`);
|
|
@@ -42,7 +42,7 @@ async function logTestResults(results, parsed, commandStartTime, rerunCommandTem
|
|
|
42
42
|
}
|
|
43
43
|
loggingProvider_1.logger.info(`Total time: ${(0, testsUtil_1.calculateTotalTimeSeconds)(commandStartTime, Date.now())} seconds`);
|
|
44
44
|
if (parsed.reporter) {
|
|
45
|
-
await (0, reporter_1.handleReportingForTestsRun)(parsed.reporter, results, apiClient, workspaceId, parsed['reporter-options'], browser, parsed.fromPlanId, parsed.environmentId, parsed.applicationId);
|
|
45
|
+
await (0, reporter_1.handleReportingForTestsRun)(parsed.reporter, results, apiClient, workspaceId, parsed['reporter-options'], browser, parsed.fromPlanId, parsed.environmentId, parsed.applicationId, verbose);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
exports.logTestResults = logTestResults;
|