diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-06 21:08:06 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-07 19:43:29 +0200 |
commit | c682bdf4a02a45312ef1aadf8aa26136cf308414 (patch) | |
tree | 2fde937445a3e028813aa19dfab256513d6e2edb /Makefile | |
parent | e6015816224f8f405e9b1c9557f22e73b21246e8 (diff) | |
download | Trader-c682bdf4a02a45312ef1aadf8aa26136cf308414.tar.gz Trader-c682bdf4a02a45312ef1aadf8aa26136cf308414.tar.zst Trader-c682bdf4a02a45312ef1aadf8aa26136cf308414.zip |
Move tests to separate files
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -15,6 +15,8 @@ release_version = $(shell git describe --tags --always) | |||
15 | release_file = trader_$(release_version).tar.gz | 15 | release_file = trader_$(release_version).tar.gz |
16 | folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/trader | 16 | folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/trader |
17 | 17 | ||
18 | coverage_omit = "tests/*.py,test.py" | ||
19 | |||
18 | build_release: | 20 | build_release: |
19 | git archive HEAD -o $(release_file) | 21 | git archive HEAD -o $(release_file) |
20 | mv $(release_file) $(folder) | 22 | mv $(release_file) $(folder) |
@@ -25,7 +27,7 @@ build_release: | |||
25 | @echo "=================================" | 27 | @echo "=================================" |
26 | 28 | ||
27 | test_coverage_unit: | 29 | test_coverage_unit: |
28 | coverage run --source=. --omit=test.py test.py --onlyunit | 30 | coverage run --source=. --omit="$(coverage_omit)" test.py --onlyunit |
29 | coverage report -m | 31 | coverage report -m |
30 | 32 | ||
31 | test_coverage_unit_html: test_coverage_unit | 33 | test_coverage_unit_html: test_coverage_unit |
@@ -34,7 +36,7 @@ test_coverage_unit_html: test_coverage_unit | |||
34 | @echo "coverage in https://www.immae.eu/htmlcov" | 36 | @echo "coverage in https://www.immae.eu/htmlcov" |
35 | 37 | ||
36 | test_coverage_acceptance: | 38 | test_coverage_acceptance: |
37 | coverage run --source=. --omit=test.py test.py --onlyacceptance | 39 | coverage run --source=. --omit="$(coverage_omit)" test.py --onlyacceptance |
38 | coverage report -m | 40 | coverage report -m |
39 | 41 | ||
40 | test_coverage_acceptance_html: test_coverage_acceptance | 42 | test_coverage_acceptance_html: test_coverage_acceptance |
@@ -43,7 +45,7 @@ test_coverage_acceptance_html: test_coverage_acceptance | |||
43 | @echo "coverage in https://www.immae.eu/htmlcov" | 45 | @echo "coverage in https://www.immae.eu/htmlcov" |
44 | 46 | ||
45 | test_coverage_all: | 47 | test_coverage_all: |
46 | coverage run --source=. --omit=test.py test.py | 48 | coverage run --source=. --omit="$(coverage_omit)" test.py |
47 | coverage report -m | 49 | coverage report -m |
48 | 50 | ||
49 | test_coverage_all_html: test_coverage_all | 51 | test_coverage_all_html: test_coverage_all |