Health check to check for exception?

Is there a simple way to see if the streamlit code passes without exception?

Seems like binary xhr’s are passed and having selenium call script locally is slow and feels like overkill…

Just want to get back what exception is…

This is basically for cursor post prompt to verify modified code is ok in YOLO.

Hopefully someone finds this helpful, but i have it working with a bat script…

would be a lot nicer to simplify this and get the streamlit run return back in a cleaner way… :\

https://gist.github.com/joefaron/6950882a997d9785107f6088b33af918

posted question on cursor forum too.

Issue is mainly with how cursor exits a cmd pretty fast, and forgets to wait for response… seen it about half of the tries.

That’s why a faster health check on a streamlit unit test would be great… “streamlit run” takes too long for cursor… and its pretty janky way to do it…

I know the cursor team prioritizes speed of the composer chat… which i think is leading this to escaping on the cmd and not listening for it to wait and run the tests… sometime it’ll wait and get the response but a lot of times it doesnt… its done some incredible recursive coding tho… so fun!