Run All UI Tests
Execute all UI test markers sequentially, recording failures and cleaning up on success.
UI Test Markers (from pytest.ini)
Run in this order:
- •splash_ui
- •home_ui
- •utubs_ui
- •members_ui
- •urls_ui
- •create_urls_ui
- •update_urls_ui
- •tags_ui
- •mobile_ui
Procedure
1. Setup
Create tmp directory and set failure file path:
bash
mkdir -p tmp FAILURE_FILE="tmp/UI_$(date +%Y%m%d_%H%M%S)_failures.txt"
2. Run Each Marker Sequentially
For each marker above, run:
bash
docker exec u4i-local-web /bin/bash -c "source /code/venv/bin/activate && pytest -m 'MARKER'"
- •Wait for each test suite to complete before starting the next
- •If tests fail, append marker name and failure summary to the failure file
- •Continue to the next marker regardless of pass/fail
3. On Completion
If any failures occurred:
- •Report which markers failed
- •Reference the failure file:
tmp/UI_<timestamp>_failures.txt - •MUST include a snippet of the stack trace indicating why the error occurred
If ALL tests passed:
- •Remove all UI failure files:
bash
rm -f tmp/UI_*
- •Confirm success and cleanup