diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-11 13:36:54 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-11 13:36:54 +0100 |
commit | 1aa7d4fa2ec3c2b3268bef31a666ca6e1aaa6563 (patch) | |
tree | f47f804070e935bf8fdf621cc59f4320606cf46f /Makefile | |
parent | 6ca5a1ec669593fa915a2824efca068c975f9caa (diff) | |
download | Trader-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-- | Makefile | 32 |
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 @@ | |||
1 | test: | ||
2 | python test.py | ||
3 | |||
4 | run: | ||
5 | python portfolio.py | ||
6 | |||
7 | test_coverage_unit: | ||
8 | coverage run --source=. --omit=test.py test.py --onlyunit | ||
9 | coverage report -m | ||
10 | |||
11 | test_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 | |||
16 | test_coverage_acceptance: | ||
17 | coverage run --source=. --omit=test.py test.py --onlyacceptance | ||
18 | coverage report -m | ||
19 | |||
20 | test_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 | |||
25 | test_coverage_all: | ||
26 | coverage run --source=. --omit=test.py test.py | ||
27 | coverage report -m | ||
28 | |||
29 | test_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" | ||