With the amazing Microdot project, I wrote a sample project on how to have End-To-End Tests for MicroDot projects. In my case, I use Microdot on a Raspberry Pico W and always wanted to have automated testig for CI. This project uses Playwright and Pytest for automated UI testing.
Run the following two commands:
pip install -r requirements.txt
playwright install
You can run the tests locally, for testing without a Raspberry Pico. After installing the requirements, run
pytest test_server.py