Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18,502 changes: 1,512 additions & 16,990 deletions cli/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@ffmpeg-installer/ffmpeg": "^1.1.0",
"doc-detective-common": "^3.1.1",
"doc-detective-core": "^3.1.3-dev.1",
"doc-detective-core": "file:../core",
"yargs": "^17.7.2"
},
"devDependencies": {
Expand Down
14 changes: 14 additions & 0 deletions cli/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ function setArgs(args) {
description: "Allow execution of potentially unsafe tests",
type: "boolean",
})
.option("debug", {
description: "Enable breakpoint debugging mode",
type: "boolean",
})
.option("stepThrough", {
description: "Enable step-through debugging mode (pauses at every step)",
type: "boolean",
})
.help()
.alias("help", "h").argv;

Expand Down Expand Up @@ -119,6 +127,12 @@ async function setConfig({ configPath, args }) {
if (typeof args.allowUnsafe === "boolean") {
config.allowUnsafeSteps = args.allowUnsafe;
}
if (typeof args.debug === "boolean" && args.debug) {
config.debug = true;
}
if (typeof args.stepThrough === "boolean" && args.stepThrough) {
config.debug = "stepThrough";
}
// Resolve paths
config = await resolvePaths({
config: config,
Expand Down
206 changes: 206 additions & 0 deletions core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@
"appium-geckodriver": "^1.4.3",
"appium-safari-driver": "^3.5.25",
"axios": "^1.10.0",
"chalk": "^4.1.2",
"doc-detective-common": "^3.1.1",
"doc-detective-resolver": "^3.1.2-dev.3",
"dotenv": "^17.2.0",
"geckodriver": "^5.0.0",
"inquirer": "^9.3.7",
"jq-web": "^0.6.2",
"json-schema-faker": "^0.5.9",
"pixelmatch": "^5.3.0",
Expand Down
4 changes: 2 additions & 2 deletions core/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ async function getAvailableApps({ config }) {
const chrome = installedBrowsers.find(
(browser) => browser.browser === "chrome"
);
const chromeVersion = chrome.buildId;
const chromeVersion = chrome ? chrome.buildId : null;
const chromedriver = installedBrowsers.find(
(browser) => browser.browser === "chromedriver"
);
Expand Down Expand Up @@ -348,7 +348,7 @@ async function getAvailableApps({ config }) {
if (firefox && appiumFirefox) {
apps.push({
name: "firefox",
version: firefox.buildId,
version: firefox.buildId || null,
path: firefox.executablePath,
});
}
Expand Down
Loading