This repo contains examples of testing in Plotly Dash.
For more information see https://dash.plotly.com/testing
Location:
/tests/test_unit
Run with:
python -m pytest tests/test_unit
End-to-end tests run programmatically, start a real browser session, and click through the Dash app UI. They are slower to run than unit tests and more complex to set up but more closely mimic the end user's experience.
Install ChromeDriver for testing your website on desktop (Windows/Mac/Linux).
Location:
/tests/test_e2e
Run with:
python -m pytest tests/test_e2e
Note: some assertions may fail (e.g. the test for browser console errors).