@midscene/cli 1.6.1-beta-20260331083547.0 → 1.6.1
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/dist/es/index.mjs +11 -3
- package/dist/es/index.mjs.map +1 -1
- package/dist/lib/index.js +11 -3
- package/dist/lib/index.js.map +1 -1
- package/package.json +7 -7
package/dist/lib/index.js
CHANGED
|
@@ -3015,7 +3015,9 @@ var __webpack_modules__ = {
|
|
|
3015
3015
|
var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_node_path_namespaceObject);
|
|
3016
3016
|
var main = __webpack_require__("../../node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js");
|
|
3017
3017
|
var main_default = /*#__PURE__*/ __webpack_require__.n(main);
|
|
3018
|
-
var package_namespaceObject =
|
|
3018
|
+
var package_namespaceObject = {
|
|
3019
|
+
rE: "1.6.1"
|
|
3020
|
+
};
|
|
3019
3021
|
const yaml_namespaceObject = require("@midscene/core/yaml");
|
|
3020
3022
|
const common_namespaceObject = require("@midscene/shared/common");
|
|
3021
3023
|
const puppeteer_agent_launcher_namespaceObject = require("@midscene/web/puppeteer-agent-launcher");
|
|
@@ -3989,6 +3991,12 @@ var __webpack_modules__ = {
|
|
|
3989
3991
|
if (player.reportFile) reportFile = player.reportFile;
|
|
3990
3992
|
let outputPath = player.output || void 0;
|
|
3991
3993
|
if (outputPath && !(0, external_node_fs_namespaceObject.existsSync)(outputPath)) outputPath = void 0;
|
|
3994
|
+
let errorMessage;
|
|
3995
|
+
if (player.errorInSetup?.message) errorMessage = player.errorInSetup.message;
|
|
3996
|
+
else if (hasPlayerError || hasFailedTasks) {
|
|
3997
|
+
const taskErrors = player.taskStatusList?.filter((task)=>'error' === task.status && task.error?.message).map((task)=>task.error.message);
|
|
3998
|
+
errorMessage = taskErrors && taskErrors.length > 0 ? taskErrors.join('; ') : hasPlayerError ? 'Execution failed' : 'Some tasks failed';
|
|
3999
|
+
}
|
|
3992
4000
|
results.push({
|
|
3993
4001
|
file,
|
|
3994
4002
|
success,
|
|
@@ -3997,7 +4005,7 @@ var __webpack_modules__ = {
|
|
|
3997
4005
|
report: reportFile,
|
|
3998
4006
|
duration,
|
|
3999
4007
|
resultType,
|
|
4000
|
-
error:
|
|
4008
|
+
error: errorMessage
|
|
4001
4009
|
});
|
|
4002
4010
|
}
|
|
4003
4011
|
for (const context of notExecutedContexts)results.push({
|
|
@@ -11970,7 +11978,7 @@ Usage:
|
|
|
11970
11978
|
type: 'boolean',
|
|
11971
11979
|
description: `Turn on logging to help debug why certain keys or values are not being set as you expect, default is ${config_factory_defaultConfig.dotenvDebug}`
|
|
11972
11980
|
}
|
|
11973
|
-
}).version('version', 'Show version number', "1.6.1
|
|
11981
|
+
}).version('version', 'Show version number', "1.6.1").help().epilogue(`For complete list of configuration options, please visit:
|
|
11974
11982
|
• Web options: https://midscenejs.com/automate-with-scripts-in-yaml#the-web-part
|
|
11975
11983
|
• Android options: https://midscenejs.com/automate-with-scripts-in-yaml#the-android-part
|
|
11976
11984
|
• iOS options: https://midscenejs.com/automate-with-scripts-in-yaml#the-ios-part
|