-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (44 loc) · 1013 Bytes
/
Makefile
File metadata and controls
58 lines (44 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
install:
pip install -r requirements.txt
lint:
flake8 .
format:
black .
security-sast:
bandit -r src
security-deps:
pip-audit
docker-up:
docker compose up -d
docker-down:
docker compose down
unit-tests:
pytest tests/test_app.py
bdd-tests:
behave
integration-tests: docker-up
docker compose run --rm web pytest tests/integration
$(MAKE) docker-down
contract-consumer-tests:
pytest tests/contract/test_consumer.py
contract-provider-tests: docker-up
docker compose run --rm web pytest tests/contract/test_provider.py
$(MAKE) docker-down
e2e-tests: docker-up
docker compose run --rm web pytest tests/e2e/test_user_journey.py
$(MAKE) docker-down
all-tests:
$(MAKE) unit-tests
$(MAKE) bdd-tests
$(MAKE) integration-tests
$(MAKE) contract-consumer-tests
$(MAKE) e2e-tests
clean:
find . -name "__pycache__" -exec rm -rf {} +
find . -name "*.pyc" -exec rm -f {} +
rm -rf .pytest_cache
rm -rf .pact
rm -f test.db
rm -f test_pytest.db
rm -f test_behave.db
rm -f test_provider.db