In this lesson, we'll see how to run Playwright tests using the command line:
Run all tests:
```
npx playwright test
```
Run tests on a specific environment:
```
ENV=prod npx playwright test
```
Run tests by title -g(grep):
```
npx playwright test example.spec.ts --grep "should get users from page 2"
```
Run tests by Line number:
```
npx playwright test example.spec.ts:32
```
*********************************************************************************
*Source code: https://github.com/jdmesalosada/playw...
******************************************************************************
Get my courses on Udemy:
Automation with Appium:
https://www.udemy.com/course/automati...
Automation with Selenium Webdriver:
https://www.udemy.com/course/automati...
API Testing Automation with Retassured:
https://www.udemy.com/course/automati...
******************************************************************************
You can contact me:
Linkedin: / julianmesaconsultant
WhatsApp Business: +57 319 3881258
******************************************************************************