Hello Reader, It took me some time to realize, but you actually can run your Cypress tests locally in parallel. This part is the most criticized one among Cypress users, and I can’t believe how easy it is actually to set up. All you need to do is to use these two packages: 1. concurrently - to run your tests in parallel 1 // package.json 2 "scripts": { 3 "cy:parallel": "npx concurrently 4 \"cypress run --env split=2,splitIndex=0\" 5 \"cypress run --env split=2,splitIndex=1\"" 6 }, And that’s all there’s to it! New Cypress Course ProgressI've been heads down over the weekend, pushing forward on my upcoming Cypress course! While I’m running a bit late, I did manage to sneak in a little creative break designing the course logo. It’s starting to come together—can't wait to share more with you! ​ Advanced Cypress InterceptingI've discovered how to run Cypress tests in parallel locally using the cypress-split and concurrently packages—a game-changer for handling large test suites. 1 Cypress.Commands.add("waitAlias", function (this: any, pattern: RegExp) { 2 return cy.wrap(null, { log: false }).then(function () { 3 const matchingAliases = Object.keys(this).filter(alias => 4 pattern.test(alias), 5 ); 6 7 if (matchingAliases.length === 0) { 8 throw new Error(`No aliases found matching pattern: ${pattern}`); 9 } 10 11 return cy.wait("@" + matchingAliases[0]); 12 }); 13 }); Meme of the week Take care! |
Sign up for weekly tips on testing, development, and everything related. Unsubscribe anytime you feel like you had enough 😊
Filip Hric 23rd April 2025 AN APP CAN BE A HOME-COOKED MEAL He Reader,Today I’d love to share with you one of the best blogposts I’ve ever read. It warmed my heart and inspired me greatly. The blogpost is called "An app can be a home-cooked meal". Give it a read. It taps into something that’s really close to my heart - using your talents to make a world a better place - starting with your family. While you can be a world-renowned chef, it will always feel different when you cook a meal for...
Filip Hric 24th March 2025 Playwright in Production Hello Reader,I’ll be doing a live webinar with my friend Jonathan tomorrow. We’ll be talking about different use-cases of Playwright in production. Interestingly we’ll focus on use cases that are outside of testing, like web-scraping, monitoring and automation workflows. Make sure to register and join us! Register here Blogposts, discussions, events In Case You Missed It – Code (r)evolution Livestream Last week, Jonathan and I unpacked...
Filip Hric 18th March 2025 Code (r)evolution is here Hello Reader,We’re living through a massive shift in how code is written. AI is no longer just a sidekick—it’s building entire features in minutes. Supabase is becoming the go-to AI-friendly database, and vibe coding is turning into a movement (controversial or not). That’s why Jonathan and I are going live this Wednesday to break it all down. We’ll talk about what’s happening, where AI is leading us, and what this means for developers and...