setup_venv:
	python3 -m venv venv

lint:
	flake8 app

clean_html_report:
	rm -r test_results || true
	mkdir "test_results"

clean_automation_log:
	rm automation.log || true

update_spotify_token:
	python update_spotify_refresh_token.py

run_tests: clean_html_report clean_automation_log
	pytest app/src/tests/*/test_*.py --report=test_results/report.html --template=html1/index.html --self-contained-html -s --rootdir=app

run_tests_traced: clean_html_report clean_automation_log
	pytest app/src/tests/*/test_*.py \
	  --ddtrace \
	  --report=test_results/report.html \
	  --template=html1/index.html \
	  -s \
	  --rootdir=app
