forked from transferwise/pipelinewise-tap-postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 896 Bytes
/
Makefile
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
COV_OPTIONS ?=
venv:
python3 -m venv venv ;\
. ./venv/bin/activate ;\
pip install --upgrade pip setuptools wheel;\
pip install -e .[test]
pylint:
. ./venv/bin/activate ;\
pylint --rcfile .pylintrc tap_postgres/
start_db:
docker-compose up -d
unit_test:
. ./venv/bin/activate ;\
coverage run --data-file=.coverage.unit --source=tap_postgres -m pytest -v tests/unit ;\
unit_test_cov: unit_test
. ./venv/bin/activate ;\
coverage report --data-file=.coverage.unit --fail-under=58
integration_test:
. ./venv/bin/activate ;\
. ./tests/integration/env ;\
coverage run --data-file=.coverage.integration --source=tap_postgres -m pytest -v tests/integration ;\
integration_test_cov: integration_test
. ./venv/bin/activate ;\
coverage report --data-file=.coverage.integration --fail-under=63
total_cov:
. ./venv/bin/activate ;\
coverage combine ;\
coverage report --fail-under=85