Uploaded March 2025 | Updated September 2026, 2 weeks ago
#ShinyConf #ShinyConf2024
Abstract: Every production application should be well-tested and have automated checks and tests in place making sure the growing features do not break something.
Unit tests are great to test R code and logic in your shiny apps. End-to-end tests are important too, I think of them as the first line of defense against bugs. There are strengths to having both of these in your shiny app and we'll see what they are and when to use them.
There are a few hurdles for writing cypress end-to-end tests for a shiny app that we will overcome. A major one is the fact that cypress tests require some knowledge of JS.
In this talk, I would like to answer these questions:
1. What are the advantages of end-to-end tests over unit tests?
2. Why cypress and not shinytest2?
3. What JS prerequisite is needed to use cypress?
4. How to set up npm and cypress?
5. How to add tests using cypress?
6. How to set up CI for your cypress tests using GitHub actions?
____________________________
Join us this year! Sign up for ShinyConf 2025 here: go.appsilon.com/register-shinyconf2025
#ShinyConf #ShinyConf2024
Abstract: Every production application should be well-tested and have automated checks and tests in place making sure the growing features do not break something.
Unit tests are great to test R code and logic in your shiny apps. End-to-end tests are important too, I think of them as the first line of defense against bugs. There are strengths to having both of these in your shiny app and we'll see what they are and when to use them.
There are a few hurdles for writing cypress end-to-end tests for a shiny app that we will overcome. A major one is the fact that cypress tests require some knowledge of JS.
In this talk, I would like to answer these questions:
1. What are the advantages of end-to-end tests over unit tests?
2. Why cypress and not shinytest2?
3. What JS prerequisite is needed to use cypress?
4. How to set up npm and cypress?
5. How to add tests using cypress?
6. How to set up CI for your cypress tests using GitHub actions?
____________________________
Join us this year! Sign up for ShinyConf 2025 here: go.appsilon.com/register-shinyconf2025









 and [ffverse](https://ffverse.com), maintain [nflverse](https://github.com/nflverse) data and packages, and mentor at [R4DS Slack Community](https://r4ds.io). Away from my keyboard, I enjoy skiing ⛷, lifting weights 🏋️, rowing 🚣️, and hanging out with my dog Jasper 🐶 Tan Ho: DIY Pest Control: Effectively Debugging Shiny Apps](https://i.ytimg.com/vi/x764Y1qz_iQ/mqdefault.jpg)
