Which Library Should You Choose To Acceptance Test Shiny Apps?

{shinytest2} vs Cypress

4 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.