Files
MyManagingTools/Makefile

59 lines
1.6 KiB
Makefile

.PHONY: test install-playwright install-playwright-deps test-e2e test-e2e-headed test-regression
test:
pytest
coverage:
coverage run --source=src -m pytest
coverage html
install-playwright:
@echo "Installing Playwright and pytest-playwright via pip..."
pip install playwright pytest-playwright
@echo "Installing Playwright browsers..."
playwright install
@echo "Installing system dependencies for Ubuntu/WSL2..."
playwright install-deps
@echo "Playwright installation complete!"
install-playwright-deps:
@echo "Installing system dependencies for Playwright on Ubuntu/WSL2..."
playwright install-deps
test-e2e:
pytest tests/test_e2e_regression.py -m "e2e" --browser chromium
test-e2e-headed:
pytest -m "e2e" --browser chromium --headed
test-e2e-headed-slowmo:
pytest -m "priority1" --browser chromium --headed --slowmo=2000
test-regression:
pytest tests/test_e2e_regression.py -m "regression" --browser chromium
test-all-browsers:
pytest tests/test_e2e_regression.py -m "e2e" --browser chromium --browser firefox --browser webkit
clean:
rm -rf build
rm -rf htmlcov
rm -rf .coverage
rm -rf tests/*.csv
rm -rf tests/*:Zone.Identifier
rm -rf tests/TestDBEngineRoot
rm -rf tests/settings_from_unit_testing.json
rm -rf Untitled*.ipynb
rm -rf .ipynb_checkpoints
rm -rf src/tools.db
rm -rf src/*.out
rm -rf src/*.prof
rm -rf tests/debug*.txt
rm -rf tests/debug*.html
rm -rf tests/debug*.png
find . -name '.sesskey' -exec rm -rf {} +
find . -name '.pytest_cache' -exec rm -rf {} +
find . -name '__pycache__' -exec rm -rf {} +
find . -name 'debug.txt' -exec rm -rf {}