How to run Playwright tests using the command line. Headed and headless mode. How to view the report

Опубликовано: 20 Май 2026
на канале: Bondar Academy
577
9

🎓 Enroll in SDET with Playwright course here: https://www.bondaracademy.com/course/...

In this lesson, you will learn how to run Playwright tests using a command line interface (CLI) or just a terminal. You will learn different commands, how to run tests in headed and headless mode, trigger different projects or spec files, and how to open test reports after the test execution. Also, you will learn how to ignore or skip a particular test from the test execution, or how to run a specific test.

*Chapters:"
00:00 Introduction
00:32 Run all tests headlessly
01:28 Show the report
02:07 Run is a specific browser
02:30 Run tests in headed mode
03:02 Run a specific spec file
03:50 Run test by it's name
04:31 Assertion failure in the report
05:30 Ignore test execution
06:15 Run only a specific test
06:52 Summary

More at Bondar Academy:
🎓 Bondar Academy Home Page: https://www.bondaracademy.com
🎓 JavaScript Fundamentals FREE class: https://www.bondaracademy.com/course/...
🎓 Bondar Academy Blog: https://www.bondaracademy.com/blog

What is inside Bondar Academy?
Bondar Academy is a platform for efficient education, designed to boost your technical skills and advance your career in Quality Assurance (QA). Our program features a balanced mix of pre-recorded lectures and live sessions, allowing each student to study at their own pace and at a time that suits them.

Our instructors are readily available on our Slack Workspace for support. Whether it's a quick question or a more complex issue requiring a Zoom call or Slack Huddle for screen sharing and live discussion, we're here to assist. Additionally, each class comes with a comprehensive question bank for self-assessment. Following each lecture, you have the opportunity to validate your understanding and readiness to progress to the next topic. You set the pace, and we provide the solutions to ensure you achieve your desired outcomes.