Let's say that the Shiny application we have developed runs well on our machine for some input, but for others it does not give the desired output or it gets stuck somewhere and throws errors. In the software development process, testing is one of the most important tasks. A Shiny application might stop working due to any of the following reasons:
- The version of Shiny and the version of the packages may differ
- A modification in the application code leads to the wrong input for any other reactive code
- The data format may have changed
There may be countless reasons that cause us to come across errors and cause the application to stop working. Doing testing manually can be time-consuming and inefficient because you have to consider a wide range of use cases. For this reason, Shiny has the shinytest package for automatic testing. It can be installed as follows (https...