Test Automation Stack

Run All Specs was the most used feature in the Test Runner and When it was removed in Version 10 due to the memory leak issues it was causing, a significantly large amount of users were unhappy, including myself.

Cypress always listen to the community and now it has brought the feature back to its users with Version 11.2.0

With this release the feature is experimental and available for e2e testing only.

In cypress.config.ts(js) file enable the flag — experimentalRunAllSpecs

https://snappify.io/view/ea405ad0-1e32-4eeb-8f21-b73d6a953e6d

e2e: {
specPattern: ["*/.spec.js"],
setupNodeEvents(on, config) {
require("cypress-mochawesome-reporter/plugin")(on);
},
experimentalWebKitSupport: true,
experimentalRunAllSpecs: true
}

Now if we launch of cypress test runner with npx cypress open, we can see the Run All Specs option like below when we hover mouse on folder.

Leave a comment

I’m Gurudatt

Profile Pic

With over 12 years of quality assurance experience, i have used various test automation tools and testing concepts and helped organization and teams to speed up testing process effectively. I’m also a Cypress.io Ambassador and BrowserStack Champion.

Let’s connect

Discover more from Test Automation Stack

Subscribe now to keep reading and get access to the full archive.

Continue reading