Choosing the Best Library for Acceptance Testing Shiny Apps: {shinytest2} vs Cypress

Compare {shinytest2} and Cypress for acceptance testing Shiny apps. Learn their pros, cons, and which might suit your project better.

rtests
5 min read

There are a few library options when it comes to writing acceptance tests for Shiny apps.

It’s a good idea to make a conscious decision which one to use at the start of the project as changing the library after writing a lot of tests will be costly.

Let’s compare two choices: {shinytest2} and Cypress.

I’ve used each of them in different projects. Let’s explore what you might expect from choosing one over the other.

⚠️ The following list is based on my experience and some points are opinions rather than an objective truth. Take it into account when considering this list. ⚠️

{shinytest2}

Cypress

My recommendation

If you have a chance, try both.

In my opinion both are good choices and you might just find that one suits you (and your team) better than the other.