Hello! My team and I sometimes have issues where we deploy an Streamlit app, and when we open it in Azure, it immediately gives a red error box with some error message. We would like to write tests to avoid this issue. To me the simplest (but likely not the best) way to test this would be to have a test which runs streamlit run app.py
and returns any error that occurs. Is there any way to do such a thing?
Our apps usually work just fine locally when we do streamlit run app.py
, but sometime we make many smaller changes and forget to build and test in Docker before deploying. A simple way of testing these apps would be greatly beneficial. I couldn’t find anything on this in the docs, and only found a seemingly complex testing tutorial shown here.
Thanks a lot for all your great work! Really enjoy using Streamlit.