Cypress is a modern testing framework built for automated UI and unit testing. In this Tech in 2, Principal Consultant Josh Schanke shares why utilizing Cypress can mean higher quality code and faster development.
Easy To Learn
Cypress is definitely the easiest testing framework I’ve ever had to learn. And with a lot of other things you’re learning: Protractor, Selenium, Jasmin Mocha, Chai – it’s a lot of stuff at once. With Cypress, you’re learning just Cypress. It’s an all-in-one testing framework. It doesn’t use selenium. If you’ve used those other ones it’s going to be really easy to pick up.
No Wait Testing
There’s no explicit calls out to any kind of waiting function. With all the other ones, you’re trying to specify a five second wait time for something to render. With Cyprus, you’re calling their wait function to handle all that stuff for you.
Cypress has the ability to debug things. Throughout each step in your automated UI testing, your test is taking a snapshot of what’s happening every step of the way, so you can go and see all the things that your test is doing and look at the DOM every step of the way. So you can say “Oh, why didn’t this show up?” or “Oh, this thing happened.”. It’s really easy to figure out what happened in your test.
Cypress Runs In Different Browser Types
One of the big benefits of Cypress is that it runs in the browser. It runs the exact same way your users are viewing. If you use Chrome, you can run chrome for your test. You can have Chrome headless running your CI server. Your tests are looking at your applications the exact same way your users are.
It’s by far my favorite testing framework that I’ve ever had to use. We had an application that we typed over a bunch of tests from protractor and it took us less than a week and our testing velocity increased so much after that. It’s just so much easier to debug, so much easier to write tests in the first place. It’s just been huge for us.
Getting Started with Generative AI-Assisted Coding
With numerous benefits to using Generative AI in coding, it’s no wonder so many organizations are harnessing this new technology to their advantage. If you haven’t started using Generative AI in coding yet, though, no need to fear. In this video, Chief Engineering Officer Janet Pierce shares three steps to help you get started with using generative AI in coding.
AI-Aided Product Engineering
AI-aided product engineering demonstrates a shift from the more traditional, development-focused use of AI. In this Tech in 2, Sparq Chief Technology Officer Derek Perry shares more about this concept and how it can help organizations with critical things like improving speed-to-market.
Better Software Development Through Collaborative Communication
Collaborative communication in software development is so important, as it helps you anticipate obstacles, figure out how to resolve them and ensure you have a well-rounded product. In this Tech in 2, Senior Consultant Jennifer Butler shares three keys to collaborative communication.
Learning From Old Code to Improve New Code
When faced with very old code, a developer might question “what were they thinking?” or “who would design something like this?” In reality, though, there’s actually a lot that can be learned from old code. In this Tech in 2, Principal Consultant Jeremy Swineheart shares three keys to learning from old code.