How We Use Cypress At Razroo

Cypress: The Full Gamut

Charlie Greenman
January 23, 2023
3 min read
razroo image

Why Use End To End Testing?

End-to-end testing is a valuable tool for ensuring that a software system functions correctly from beginning to end. It tests the entire system, including all components and interfaces, to verify that they work together as expected. This type of testing can catch issues that may not be found in individual component or unit testing. It also simulates the real-world use of the system, providing confidence that the system will perform correctly for users. Additionally, end-to-end testing can help identify integration issues between different components and systems, and can also be used to validate that the system meets its requirements and works as intended. Overall, end-to-end testing is an essential step in the software development process that helps to ensure a high-quality, stable, and reliable system.


Why We Use Cypress At Razroo

At Razroo, we use Cypress for end-to-end testing because it provides a number of advantages over other testing tools. Cypress is a modern, browser-based testing framework that allows for easy integration with our web application. It also has a simple and intuitive API that makes it easy for our development team to write and maintain tests. Additionally, Cypress has built-in support for synchronous execution, which eliminates the need for complicated workarounds to handle asynchronous code. This makes our tests more reliable and easier to read. Cypress also allows us to run our tests in a real browser, which gives us confidence that our application will work correctly in the actual environment in which it will be used. Cypress also provides a built-in dashboard that allows us to easily view and analyze test results, helping us to quickly identify and fix any issues.


Automating Process Via Github Actions

At Razroo we have our own homegrown Github Actions which we use for our CI/CD process. This allows us to make sure that any time a developer contributes code it has not broken the application. We use Nrwl NX for our monorepo and it didn't play nice with Cypress's GitHub Action. So we made our own. That can be seen here: (razroo feature pending)


Cypress Cloud For Dashboard

At Razroo, we use Cypress Cloud for our dashboard to take advantage of its powerful reporting and analytics capabilities. Cypress Cloud provides us with a centralized location to view and analyze our test results, which makes it easy for our team to quickly identify and fix any issues. It also allows us to view real-time test runs, which helps us to understand how our application is performing in different environments and under different conditions. Cypress Cloud also provides advanced analytics and reporting features, such as error tracking and test history, that help us to understand the overall health of our application and identify trends over time. Additionally, Cypress Cloud allows us to easily collaborate with our team members, by sharing the test results and test metrics, which helps us to improve the quality and stability of our application.


Adding Cypress Cloud Status to Readme

We generate a badge for Cypress and add it to the Readme for Cypress

Subscribe to the Razroo Angular Newsletter!

Razroo takes pride in it's Angular newsletter, and we really pour heart and soul into it. Pass along your e-mail to recieve it in the mail. Our commitment, is to keep you up to date with the latest in Angular, so you don't have to.

More articles similar to this

footer

Razroo is committed towards contributing to open source. Take the pledge towards open source by tweeting, #itaketherazroopledge to @_Razroo on twitter. One of our associates will get back to you and set you up with an open source project to work on.