Home / Companies / Checkly / Blog / Post Details
Content Deep Dive

Five Playwright CLI features you should know

Blog post from Checkly

Post Details
Company
Date Published
Author
Stefan Judis
Word Count
1,278
Language
English
Hacker News Points
-
Summary

Microsoft's Playwright enables efficient end-to-end testing with real browsers. The text highlights five favorite CLI tricks for using Playwright effectively. These include the --last-failed flag to run only failed tests, --only-changed flag to run only changed spec files, and --repeat-each flag to ensure test stability. Additionally, the --forbid-only flag prevents accidental merging of test.only cases into main branches, while combining UI mode with --headed and --workers 1 allows for more comfortable debugging during development.