aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-11 13:36:54 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-11 13:36:54 +0100
commit1aa7d4fa2ec3c2b3268bef31a666ca6e1aaa6563 (patch)
treef47f804070e935bf8fdf621cc59f4320606cf46f /Makefile
parent6ca5a1ec669593fa915a2824efca068c975f9caa (diff)
downloadTrader-1aa7d4fa2ec3c2b3268bef31a666ca6e1aaa6563.tar.gz
Trader-1aa7d4fa2ec3c2b3268bef31a666ca6e1aaa6563.tar.zst
Trader-1aa7d4fa2ec3c2b3268bef31a666ca6e1aaa6563.zip
Add Makefile and test coverage
Fix order preparation and add tests for the step Separate tests between acceptance and unit Add more tests
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1464886
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
1test:
2 python test.py
3
4run:
5 python portfolio.py
6
7test_coverage_unit:
8 coverage run --source=. --omit=test.py test.py --onlyunit
9 coverage report -m
10
11test_coverage_unit_html: test_coverage_unit
12 coverage html
13 rm ~/hosts/www.immae.eu/htmlcov -rf && cp -r htmlcov ~/hosts/www.immae.eu
14 @echo "coverage in https://www.immae.eu/htmlcov"
15
16test_coverage_acceptance:
17 coverage run --source=. --omit=test.py test.py --onlyacceptance
18 coverage report -m
19
20test_coverage_acceptance_html: test_coverage_acceptance
21 coverage html
22 rm ~/hosts/www.immae.eu/htmlcov -rf && cp -r htmlcov ~/hosts/www.immae.eu
23 @echo "coverage in https://www.immae.eu/htmlcov"
24
25test_coverage_all:
26 coverage run --source=. --omit=test.py test.py
27 coverage report -m
28
29test_coverage_all_html: test_coverage_all
30 coverage html
31 rm ~/hosts/www.immae.eu/htmlcov -rf && cp -r htmlcov ~/hosts/www.immae.eu
32 @echo "coverage in https://www.immae.eu/htmlcov"