From the course: Learning Playwright

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Exploring the test runner command line interface

Exploring the test runner command line interface

From the course: Learning Playwright

Exploring the test runner command line interface

- [Instructor] One of the main ways that Playwright tests are run is through the command line interface, or as I'll refer to it in this video, the CLI. To run commands within VS Code this way, you can select the Terminal dropdown, and select New Terminal. In this video, we'll walk through and run tests using some of the most useful commands. A full list of the commands can be found in the official Playwright docs. One thing to note is any options passed into the Playwright command when running from the CLI will override any configuration settings that are set in the Playwright config. For example, if I wanted to run all my tests in headed mode, meaning the browsers will pop up and I'll be able to see the actions, there's two things I can do. I can go update the Playwright config file, or I can just pass in the option through the CLI headed in the command line interface. So let's go ahead and run that command. It is going to be npx, space, playwright, space, test, --headed. (keys…

Contents