aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-06 21:08:06 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-07 19:43:29 +0200
commitc682bdf4a02a45312ef1aadf8aa26136cf308414 (patch)
tree2fde937445a3e028813aa19dfab256513d6e2edb /Makefile
parente6015816224f8f405e9b1c9557f22e73b21246e8 (diff)
downloadTrader-c682bdf4a02a45312ef1aadf8aa26136cf308414.tar.gz
Trader-c682bdf4a02a45312ef1aadf8aa26136cf308414.tar.zst
Trader-c682bdf4a02a45312ef1aadf8aa26136cf308414.zip
Move tests to separate files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 534bf88..7660895 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,8 @@ release_version = $(shell git describe --tags --always)
15release_file = trader_$(release_version).tar.gz 15release_file = trader_$(release_version).tar.gz
16folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/trader 16folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/trader
17 17
18coverage_omit = "tests/*.py,test.py"
19
18build_release: 20build_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
27test_coverage_unit: 29test_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
31test_coverage_unit_html: test_coverage_unit 33test_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
36test_coverage_acceptance: 38test_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
40test_coverage_acceptance_html: test_coverage_acceptance 42test_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
45test_coverage_all: 47test_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
49test_coverage_all_html: test_coverage_all 51test_coverage_all_html: test_coverage_all