Starting with v1.44, Playwright introduces a nice feature: --last-failed CLI option.
It can be used to run only the failed tests in the previous run
Initial test run: Imagine running the entire test suite and getting 2 failed tests
Re-run only the failed tests (after fixing them), by adding the --last-failed CLI flag
Enjoyed this article? Make sure to subscribe to my YouTube Channel for more Test Automation tutorials, and follow me on LinkedIn and Twitter for regular insights.
Looking to accelerate your test automation journey?
I’ve designed a personalized 1-on-1 mentoring program tailored to boost your skills. Reach out at iamqarv@gmail.com for more details 🚀
Post Views: 13