.PHONY: test test-unit test-scenarios test-integration test-conformance check-layer

PYTHON ?= python3

test: test-unit check-layer

test-unit:
	PYTHONPATH=src $(PYTHON) -m unittest discover -s tests -p 'test_*.py'

test-scenarios: test-unit

test-integration: test-unit

test-conformance: test-unit check-layer

check-layer:
	PYTHONPATH=src $(PYTHON) scripts/check_layer_conformance.py --report


.PHONY: test-journeys
# Optional JOURNEY_ARGS supports --role, --report and --require-complete.
test-journeys:
	PYTHONPATH=src:tests $(PYTHON) scripts/run_journey_suites.py $(JOURNEY_ARGS)


.PHONY: test-browser-journeys
test-browser-journeys:
	PYTHONDONTWRITEBYTECODE=1 $(PYTHON) scripts/browser_journeys.py
