{"id":403,"date":"2023-08-07T12:39:10","date_gmt":"2023-08-07T12:39:10","guid":{"rendered":"https:\/\/razvanvancea.ro\/blog\/?p=403"},"modified":"2024-09-27T09:55:54","modified_gmt":"2024-09-27T09:55:54","slug":"how-to-run-specific-tests-using-tags-in-testcafe","status":"publish","type":"post","link":"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/","title":{"rendered":"How to run specific tests using Tags in TestCafe"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"403\" class=\"elementor elementor-403\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c5e460c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c5e460c\" 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-2c75d5f\" data-id=\"2c75d5f\" 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-c69499b elementor-widget elementor-widget-text-editor\" data-id=\"c69499b\" 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>There are lots of situations when we need to run only some of our automated tests instead of the whole test suite (e.g. run only the smoke tests instead of the full regression suite; the entire suite grows and you might want to run only subsets of your tests, and so on).<\/p><p>This thing is possible in <a href=\"https:\/\/testcafe.io\/documentation\/402635\/guides\/overview\/getting-started\" target=\"_blank\" rel=\"noopener\">TestCafe<\/a> using the <a href=\"https:\/\/testcafe.io\/documentation\/403436\/guides\/intermediate-guides\/metadata-and-filtering\" target=\"_blank\" rel=\"noopener\">metadata filters<\/a>.<\/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-e6cab25 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e6cab25\" 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-c578f45\" data-id=\"c578f45\" 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-13080c9 elementor-widget elementor-widget-heading\" data-id=\"13080c9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How do we apply this approach?<\/h2>\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-575bf71 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"575bf71\" 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-39b8b14\" data-id=\"39b8b14\" 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-07ab7ed elementor-widget elementor-widget-text-editor\" data-id=\"07ab7ed\" 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<section data-id=\"eb91c3d\" data-element_type=\"section\"><div><div data-id=\"1c74f08\" data-element_type=\"column\"><div><div data-id=\"a11d5a9\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\"><div><p><strong>Step 1<\/strong> \u2013 Include meta\u00a0 in your <strong>test<\/strong> or <strong>fixture<\/strong> (key-value pairs, e.g. .meta(&#8216;type&#8217;, &#8216;smoke&#8217;))<\/p><\/div><\/div><\/div><\/div><\/div><\/section><section data-id=\"9201b1c\" data-element_type=\"section\"><div><div data-id=\"6a7e931\" data-element_type=\"column\"><div><div data-id=\"59c3f3b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\"><div><p>Personal use case: I used this approach for filtering tests using meta tags by &#8216;smoke&#8217; and &#8216;regression&#8217; values. On DEV environments I want to run only the tests marked with &#8216;smoke&#8217; tag, and on STG environment I want to run all the tests (marked with &#8216;regression&#8217; meta).<\/p><p>In the following test file, I included <strong>.meta(&#8216;type&#8217;,&#8217;smoke&#8217;)<\/strong>\u00a0in the title of test2 and test3, and\u00a0<span style=\"font-weight: bold\">.meta(&#8216;type&#8217;,&#8217;regression&#8217;)<\/span>\u00a0for test 4.<\/p><\/div><\/div><\/div><\/div><\/div><\/section>\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-3359a9d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3359a9d\" 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-dffb5a6\" data-id=\"dffb5a6\" 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-c4e692f elementor-widget elementor-widget-image\" data-id=\"c4e692f\" 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=\"640\" height=\"356\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.33.34-1024x570.png\" class=\"attachment-large size-large wp-image-405\" alt=\"tc-tests-filter\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.33.34-1024x570.png 1024w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.33.34-300x167.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.33.34-768x427.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.33.34-850x473.png 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.33.34-24x13.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.33.34-36x20.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.33.34-48x27.png 48w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.33.34.png 1380w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\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-e87a65b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e87a65b\" 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-930d6fa\" data-id=\"930d6fa\" 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-02302b4 elementor-widget elementor-widget-text-editor\" data-id=\"02302b4\" 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><strong>Step 2<\/strong> \u2013 Run the tests from CLI, using the <strong>--test-meta type=smoke<\/strong>\u00a0flag. The test execution will <br \/>include only the tests that contain this meta tag value (e.g. test2 and test3).<\/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-ae96c9d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ae96c9d\" 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-db95706\" data-id=\"db95706\" 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-d1728da elementor-widget elementor-widget-image\" data-id=\"d1728da\" 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=\"640\" height=\"212\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.35.53.png\" class=\"attachment-large size-large wp-image-406\" alt=\"\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.35.53.png 1006w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.35.53-300x100.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.35.53-768x255.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.35.53-850x282.png 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.35.53-24x8.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.35.53-36x12.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-07-at-15.35.53-48x16.png 48w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\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-8c0925a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8c0925a\" 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-d362fbc\" data-id=\"d362fbc\" 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-6d7c7a2 elementor-widget elementor-widget-text-editor\" data-id=\"6d7c7a2\" 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>Note: you can add meta on fixtures (test suites) as well, not only on individual tests. <a href=\"https:\/\/testcafe.io\/documentation\/403436\/guides\/intermediate-guides\/metadata-and-filtering\" target=\"_blank\" rel=\"noopener\">More information HERE<\/a><\/p>\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-e106c9e elementor-widget elementor-widget-spacer\" data-id=\"e106c9e\" 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-89c441e elementor-widget elementor-widget-text-editor\" data-id=\"89c441e\" 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 <em><a href=\"https:\/\/www.youtube.com\/@LearnwithRV\" target=\"_blank\" rel=\"noopener\">YouTube Channel<\/a><\/em> for more Test Automation tutorials, and follow me on <a href=\"https:\/\/www.linkedin.com\/in\/razvanvancea\/\" target=\"_blank\" rel=\"noopener\"><em>LinkedIn<\/em><\/a> and <em><a href=\"https:\/\/twitter.com\/razvanvancea\" target=\"_blank\" rel=\"noopener\">Twitter<\/a><\/em> 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<section class=\"elementor-section elementor-top-section elementor-element elementor-element-02254d5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"02254d5\" 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-5179b51\" data-id=\"5179b51\" 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-6fa18b1 elementor-widget elementor-widget-video\" data-id=\"6fa18b1\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=ExarVMIFTzk&amp;list=PLI-8Z_bwV1wXdMA-f1rBvjmIy0Qr9zfaE&amp;index=2&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\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>There are lots of situations when we need to run only some of our automated&#8230;<\/p>\n","protected":false},"author":2,"featured_media":411,"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":[3,6],"class_list":["post-403","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qa","tag-testautomation","tag-testcafe"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"There are lots of situations when we need to run only some of our automated tests instead of the whole test suite (e.g. run only the smoke tests instead of the full regression suite; the entire suite grows and you might want to run only subsets of your tests, and so on).This thing is possible\" \/>\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\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/\" \/>\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 run specific tests using Tags in TestCafe - Learn with RV - Tech Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"There are lots of situations when we need to run only some of our automated tests instead of the whole test suite (e.g. run only the smoke tests instead of the full regression suite; the entire suite grows and you might want to run only subsets of your tests, and so on).This thing is possible\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-08-07T12:39:10+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-09-27T09:55:54+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 run specific tests using Tags in TestCafe - Learn with RV - Tech Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"There are lots of situations when we need to run only some of our automated tests instead of the whole test suite (e.g. run only the smoke tests instead of the full regression suite; the entire suite grows and you might want to run only subsets of your tests, and so on).This thing is possible\" \/>\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\\\/2023\\\/08\\\/07\\\/how-to-run-specific-tests-using-tags-in-testcafe\\\/#blogposting\",\"name\":\"How to run specific tests using Tags in TestCafe - Learn with RV - Tech Blog\",\"headline\":\"How to run specific tests using Tags in TestCafe\",\"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\\\/2023\\\/08\\\/Copy-of-Copy-of-Copie-a-Copie-a-TOP.png\",\"width\":1920,\"height\":1080,\"caption\":\"tc-meta\"},\"datePublished\":\"2023-08-07T12:39:10+00:00\",\"dateModified\":\"2024-09-27T09:55:54+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/08\\\/07\\\/how-to-run-specific-tests-using-tags-in-testcafe\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/08\\\/07\\\/how-to-run-specific-tests-using-tags-in-testcafe\\\/#webpage\"},\"articleSection\":\"QA, #testautomation, #testcafe\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/08\\\/07\\\/how-to-run-specific-tests-using-tags-in-testcafe\\\/#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\\\/2023\\\/08\\\/07\\\/how-to-run-specific-tests-using-tags-in-testcafe\\\/#listItem\",\"name\":\"How to run specific tests using Tags in TestCafe\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/08\\\/07\\\/how-to-run-specific-tests-using-tags-in-testcafe\\\/#listItem\",\"position\":3,\"name\":\"How to run specific tests using Tags in TestCafe\",\"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\\\/2023\\\/08\\\/07\\\/how-to-run-specific-tests-using-tags-in-testcafe\\\/#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\\\/2023\\\/08\\\/07\\\/how-to-run-specific-tests-using-tags-in-testcafe\\\/#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\\\/2023\\\/08\\\/07\\\/how-to-run-specific-tests-using-tags-in-testcafe\\\/#webpage\",\"url\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/08\\\/07\\\/how-to-run-specific-tests-using-tags-in-testcafe\\\/\",\"name\":\"How to run specific tests using Tags in TestCafe - Learn with RV - Tech Blog\",\"description\":\"There are lots of situations when we need to run only some of our automated tests instead of the whole test suite (e.g. run only the smoke tests instead of the full regression suite; the entire suite grows and you might want to run only subsets of your tests, and so on).This thing is possible\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/08\\\/07\\\/how-to-run-specific-tests-using-tags-in-testcafe\\\/#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\\\/2023\\\/08\\\/Copy-of-Copy-of-Copie-a-Copie-a-TOP.png\",\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/08\\\/07\\\/how-to-run-specific-tests-using-tags-in-testcafe\\\/#mainImage\",\"width\":1920,\"height\":1080,\"caption\":\"tc-meta\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/razvanvancea.ro\\\/blog\\\/2023\\\/08\\\/07\\\/how-to-run-specific-tests-using-tags-in-testcafe\\\/#mainImage\"},\"datePublished\":\"2023-08-07T12:39:10+00:00\",\"dateModified\":\"2024-09-27T09:55:54+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 run specific tests using Tags in TestCafe - Learn with RV - Tech Blog","description":"There are lots of situations when we need to run only some of our automated tests instead of the whole test suite (e.g. run only the smoke tests instead of the full regression suite; the entire suite grows and you might want to run only subsets of your tests, and so on).This thing is possible","canonical_url":"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/#blogposting","name":"How to run specific tests using Tags in TestCafe - Learn with RV - Tech Blog","headline":"How to run specific tests using Tags in TestCafe","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\/2023\/08\/Copy-of-Copy-of-Copie-a-Copie-a-TOP.png","width":1920,"height":1080,"caption":"tc-meta"},"datePublished":"2023-08-07T12:39:10+00:00","dateModified":"2024-09-27T09:55:54+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/#webpage"},"isPartOf":{"@id":"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/#webpage"},"articleSection":"QA, #testautomation, #testcafe"},{"@type":"BreadcrumbList","@id":"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/#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\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/#listItem","name":"How to run specific tests using Tags in TestCafe"},"previousItem":{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/#listItem","position":3,"name":"How to run specific tests using Tags in TestCafe","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\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/#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\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/#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\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/#webpage","url":"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/","name":"How to run specific tests using Tags in TestCafe - Learn with RV - Tech Blog","description":"There are lots of situations when we need to run only some of our automated tests instead of the whole test suite (e.g. run only the smoke tests instead of the full regression suite; the entire suite grows and you might want to run only subsets of your tests, and so on).This thing is possible","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/razvanvancea.ro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/#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\/2023\/08\/Copy-of-Copy-of-Copie-a-Copie-a-TOP.png","@id":"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/#mainImage","width":1920,"height":1080,"caption":"tc-meta"},"primaryImageOfPage":{"@id":"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/#mainImage"},"datePublished":"2023-08-07T12:39:10+00:00","dateModified":"2024-09-27T09:55:54+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 run specific tests using Tags in TestCafe - Learn with RV - Tech Blog","og:description":"There are lots of situations when we need to run only some of our automated tests instead of the whole test suite (e.g. run only the smoke tests instead of the full regression suite; the entire suite grows and you might want to run only subsets of your tests, and so on).This thing is possible","og:url":"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/","article:published_time":"2023-08-07T12:39:10+00:00","article:modified_time":"2024-09-27T09:55:54+00:00","article:publisher":"https:\/\/www.facebook.com\/razvanvancea","twitter:card":"summary_large_image","twitter:site":"@RazvanVancea","twitter:title":"How to run specific tests using Tags in TestCafe - Learn with RV - Tech Blog","twitter:description":"There are lots of situations when we need to run only some of our automated tests instead of the whole test suite (e.g. run only the smoke tests instead of the full regression suite; the entire suite grows and you might want to run only subsets of your tests, and so on).This thing is possible","twitter:creator":"@RazvanVancea"},"aioseo_meta_data":{"post_id":"403","title":null,"description":null,"keywords":[],"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":[],"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":"2023-08-07 12:18:09","updated":"2025-06-06 10:01:20","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 run specific tests using Tags in TestCafe\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 run specific tests using Tags in TestCafe","link":"https:\/\/razvanvancea.ro\/blog\/2023\/08\/07\/how-to-run-specific-tests-using-tags-in-testcafe\/"}],"jetpack_featured_media_url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2023\/08\/Copy-of-Copy-of-Copie-a-Copie-a-TOP.png","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/403","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=403"}],"version-history":[{"count":12,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/403\/revisions"}],"predecessor-version":[{"id":873,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/403\/revisions\/873"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media\/411"}],"wp:attachment":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media?parent=403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/categories?post=403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/tags?post=403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}