{"id":644,"date":"2024-05-09T13:39:47","date_gmt":"2024-05-09T13:39:47","guid":{"rendered":"https:\/\/razvanvancea.ro\/blog\/?p=644"},"modified":"2024-09-27T09:50:32","modified_gmt":"2024-09-27T09:50:32","slug":"playwright-v1-44-introduces-last-failed-cli-flag","status":"publish","type":"post","link":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/","title":{"rendered":"How to re run only failed tests with Playwright"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"644\" class=\"elementor elementor-644\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4023620 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4023620\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2942924\" data-id=\"2942924\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3072048 elementor-widget elementor-widget-text-editor\" data-id=\"3072048\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre>Starting with <a href=\"https:\/\/playwright.dev\/docs\/release-notes#version-144\" target=\"_blank\" rel=\"noopener\">v1.44<\/a>, Playwright introduces a nice feature: --last-failed CLI option.<br \/>It can be used to run only the failed tests in the previous run<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6ef87be elementor-widget elementor-widget-text-editor\" data-id=\"6ef87be\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Initial test run:<\/strong> Imagine running the entire test suite and getting 2 failed tests<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1032c1c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1032c1c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-10c6d66\" data-id=\"10c6d66\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-92af181 elementor-widget elementor-widget-image\" data-id=\"92af181\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"416\" height=\"244\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-09-at-16.40.08.png\" class=\"attachment-large size-large wp-image-646\" alt=\"pw-failed-flag\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-09-at-16.40.08.png 416w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-09-at-16.40.08-300x176.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-09-at-16.40.08-24x14.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-09-at-16.40.08-36x21.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-09-at-16.40.08-48x28.png 48w\" sizes=\"(max-width: 416px) 100vw, 416px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-46fd9ec elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"46fd9ec\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-43c53a9\" data-id=\"43c53a9\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8cd920d elementor-widget elementor-widget-text-editor\" data-id=\"8cd920d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre>Re-run <strong>only<\/strong> the <strong>failed<\/strong> tests (after fixing them), by adding the <strong>--last-failed<\/strong> CLI flag<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-91e5a70 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"91e5a70\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-055c581\" data-id=\"055c581\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-265e44d elementor-widget elementor-widget-image\" data-id=\"265e44d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"428\" height=\"122\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-09-at-16.43.08.png\" class=\"attachment-large size-large wp-image-647\" alt=\"flag2\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-09-at-16.43.08.png 428w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-09-at-16.43.08-300x86.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-09-at-16.43.08-24x7.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-09-at-16.43.08-36x10.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-09-at-16.43.08-48x14.png 48w\" sizes=\"(max-width: 428px) 100vw, 428px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-83039d2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"83039d2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-16acf7b\" data-id=\"16acf7b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e466012 elementor-widget elementor-widget-spacer\" data-id=\"e466012\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c215bf3 elementor-widget elementor-widget-text-editor\" data-id=\"c215bf3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Enjoyed this article? Make sure to subscribe to my <a href=\"https:\/\/www.youtube.com\/@LearnwithRV\" target=\"_blank\" rel=\"noopener\">YouTube Channel<\/a> for more Test Automation tutorials, and follow me on <a href=\"https:\/\/www.linkedin.com\/in\/razvanvancea\/\" target=\"_blank\" rel=\"noopener\">LinkedIn<\/a> and <a href=\"https:\/\/twitter.com\/razvanvancea\" target=\"_blank\" rel=\"noopener\">Twitter<\/a> for regular insights.<strong> <br \/>Looking to accelerate your test automation journey? <br \/>I&#8217;ve designed a personalized 1-on-1 mentoring program tailored to boost your skills. Reach out at <a rel=\"noopener\">iamqarv@gmail.com<\/a> for more details \ud83d\ude80<br \/><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Starting with v1.44, Playwright introduces a nice feature: &#8211;last-failed CLI option.It can be used to&#8230;<\/p>\n","protected":false},"author":2,"featured_media":651,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[11],"tags":[],"class_list":["post-644","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qa"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"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?\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Razvan Vancea\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Learn with RV - Tech Blog - #testautomation #qa #programming #linux #devops\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to re run only failed tests with Playwright - Learn with RV - Tech Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"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?\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-05-09T13:39:47+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-09-27T09:50:32+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/razvanvancea\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@RazvanVancea\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to re run only failed tests with Playwright - Learn with RV - Tech Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"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?\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@RazvanVancea\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/05\\\/09\\\/playwright-v1-44-introduces-last-failed-cli-flag\\\/#blogposting\",\"name\":\"How to re run only failed tests with Playwright - Learn with RV - Tech Blog\",\"headline\":\"How to re run only failed tests with Playwright\",\"author\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/Copy-of-Copy-of-Copie-a-Copie-a-TOP-2.png\",\"width\":1920,\"height\":1080,\"caption\":\"pw-last-failed-thumbnail\"},\"datePublished\":\"2024-05-09T13:39:47+00:00\",\"dateModified\":\"2024-09-27T09:50:32+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/05\\\/09\\\/playwright-v1-44-introduces-last-failed-cli-flag\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/05\\\/09\\\/playwright-v1-44-introduces-last-failed-cli-flag\\\/#webpage\"},\"articleSection\":\"QA\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/05\\\/09\\\/playwright-v1-44-introduces-last-failed-cli-flag\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/qa\\\/#listItem\",\"name\":\"QA\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/qa\\\/#listItem\",\"position\":2,\"name\":\"QA\",\"item\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/qa\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/05\\\/09\\\/playwright-v1-44-introduces-last-failed-cli-flag\\\/#listItem\",\"name\":\"How to re run only failed tests with Playwright\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/05\\\/09\\\/playwright-v1-44-introduces-last-failed-cli-flag\\\/#listItem\",\"position\":3,\"name\":\"How to re run only failed tests with Playwright\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/category\\\/qa\\\/#listItem\",\"name\":\"QA\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\",\"name\":\"RV\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/05\\\/09\\\/playwright-v1-44-introduces-last-failed-cli-flag\\\/#personImage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/91ce41471f9ba5f15b3ef99e7deed87c.jpg?ver=1785997097\",\"width\":96,\"height\":96,\"caption\":\"RV\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/razvanvancea\\\/\",\"https:\\\/\\\/twitter.com\\\/RazvanVancea\",\"https:\\\/\\\/www.youtube.com\\\/@LearnwithRV\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/razvanvancea\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/\",\"name\":\"Razvan Vancea\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/05\\\/09\\\/playwright-v1-44-introduces-last-failed-cli-flag\\\/#authorImage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/356548feb901191539c03dd4a0498f58.jpg?ver=1785997099\",\"width\":96,\"height\":96,\"caption\":\"Razvan Vancea\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/05\\\/09\\\/playwright-v1-44-introduces-last-failed-cli-flag\\\/#webpage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/05\\\/09\\\/playwright-v1-44-introduces-last-failed-cli-flag\\\/\",\"name\":\"How to re run only failed tests with Playwright - Learn with RV - Tech Blog\",\"description\":\"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?\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/05\\\/09\\\/playwright-v1-44-introduces-last-failed-cli-flag\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/author\\\/iamrv\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/Copy-of-Copy-of-Copie-a-Copie-a-TOP-2.png\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/05\\\/09\\\/playwright-v1-44-introduces-last-failed-cli-flag\\\/#mainImage\",\"width\":1920,\"height\":1080,\"caption\":\"pw-last-failed-thumbnail\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2024\\\/05\\\/09\\\/playwright-v1-44-introduces-last-failed-cli-flag\\\/#mainImage\"},\"datePublished\":\"2024-05-09T13:39:47+00:00\",\"dateModified\":\"2024-09-27T09:50:32+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/\",\"name\":\"Learn with RV - Tech Blog\",\"description\":\"#testautomation #qa #programming #linux #devops\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to re run only failed tests with Playwright - Learn with RV - Tech Blog","description":"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?","canonical_url":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/#blogposting","name":"How to re run only failed tests with Playwright - Learn with RV - Tech Blog","headline":"How to re run only failed tests with Playwright","author":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"publisher":{"@id":"https:\/\/razvanvancea.ro\/blog\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Copy-of-Copy-of-Copie-a-Copie-a-TOP-2.png","width":1920,"height":1080,"caption":"pw-last-failed-thumbnail"},"datePublished":"2024-05-09T13:39:47+00:00","dateModified":"2024-09-27T09:50:32+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/#webpage"},"isPartOf":{"@id":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/#webpage"},"articleSection":"QA"},{"@type":"BreadcrumbList","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/razvanvancea.ro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/qa\/#listItem","name":"QA"}},{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/qa\/#listItem","position":2,"name":"QA","item":"https:\/\/razvanvancea.ro\/blog\/category\/qa\/","nextItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/#listItem","name":"How to re run only failed tests with Playwright"},"previousItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/#listItem","position":3,"name":"How to re run only failed tests with Playwright","previousItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/category\/qa\/#listItem","name":"QA"}}]},{"@type":"Person","@id":"https:\/\/razvanvancea.ro\/blog\/#person","name":"RV","image":{"@type":"ImageObject","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/#personImage","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/litespeed\/avatar\/91ce41471f9ba5f15b3ef99e7deed87c.jpg?ver=1785997097","width":96,"height":96,"caption":"RV"},"sameAs":["https:\/\/www.facebook.com\/razvanvancea\/","https:\/\/twitter.com\/RazvanVancea","https:\/\/www.youtube.com\/@LearnwithRV","https:\/\/www.linkedin.com\/in\/razvanvancea"]},{"@type":"Person","@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author","url":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/","name":"Razvan Vancea","image":{"@type":"ImageObject","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/#authorImage","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/litespeed\/avatar\/356548feb901191539c03dd4a0498f58.jpg?ver=1785997099","width":96,"height":96,"caption":"Razvan Vancea"}},{"@type":"WebPage","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/#webpage","url":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/","name":"How to re run only failed tests with Playwright - Learn with RV - Tech Blog","description":"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?","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/razvanvancea.ro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/#breadcrumblist"},"author":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"creator":{"@id":"https:\/\/razvanvancea.ro\/blog\/author\/iamrv\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Copy-of-Copy-of-Copie-a-Copie-a-TOP-2.png","@id":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/#mainImage","width":1920,"height":1080,"caption":"pw-last-failed-thumbnail"},"primaryImageOfPage":{"@id":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/#mainImage"},"datePublished":"2024-05-09T13:39:47+00:00","dateModified":"2024-09-27T09:50:32+00:00"},{"@type":"WebSite","@id":"https:\/\/razvanvancea.ro\/blog\/#website","url":"https:\/\/razvanvancea.ro\/blog\/","name":"Learn with RV - Tech Blog","description":"#testautomation #qa #programming #linux #devops","inLanguage":"en-US","publisher":{"@id":"https:\/\/razvanvancea.ro\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Learn with RV - Tech Blog - #testautomation #qa #programming #linux #devops","og:type":"article","og:title":"How to re run only failed tests with Playwright - Learn with RV - Tech Blog","og:description":"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?","og:url":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/","article:published_time":"2024-05-09T13:39:47+00:00","article:modified_time":"2024-09-27T09:50:32+00:00","article:publisher":"https:\/\/www.facebook.com\/razvanvancea","twitter:card":"summary_large_image","twitter:site":"@RazvanVancea","twitter:title":"How to re run only failed tests with Playwright - Learn with RV - Tech Blog","twitter:description":"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?","twitter:creator":"@RazvanVancea"},"aioseo_meta_data":{"post_id":"644","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-05-09 13:28:30","updated":"2025-06-06 10:59:29","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/razvanvancea.ro\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/razvanvancea.ro\/blog\/category\/qa\/\" title=\"QA\">QA<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to re run only failed tests with Playwright\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/razvanvancea.ro\/blog"},{"label":"QA","link":"https:\/\/razvanvancea.ro\/blog\/category\/qa\/"},{"label":"How to re run only failed tests with Playwright","link":"https:\/\/razvanvancea.ro\/blog\/2024\/05\/09\/playwright-v1-44-introduces-last-failed-cli-flag\/"}],"jetpack_featured_media_url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2024\/05\/Copy-of-Copy-of-Copie-a-Copie-a-TOP-2.png","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/comments?post=644"}],"version-history":[{"count":16,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/644\/revisions"}],"predecessor-version":[{"id":831,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/644\/revisions\/831"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media\/651"}],"wp:attachment":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media?parent=644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/categories?post=644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/tags?post=644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}