Skip to content

Commit

Permalink
Adding debug option (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dli3 authored Aug 9, 2024
1 parent 64e2fee commit 8aca645
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions run.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Options:
-g, --grep Filter tests by grep pattern, e.g., '@milo'.
-r, --reporter Specify the reporter to use, e.g., 'html'.
-h, --help Display this help message and exit.
--debug Run tests in debug mode.
--headed Run tests in headed mode.
--headless Run tests in headless mode (default).
--list List all tests found, but doesn't run them.
Expand Down Expand Up @@ -93,6 +94,10 @@ function runPlaywrightTests() {
}

// Add options dynamically based on argv
if (argv.debug) {
options.push('--debug');
}

if (argv.headed) {
options.push('--headed');
}
Expand Down

0 comments on commit 8aca645

Please sign in to comment.