aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 14648867c319d93af41e087972d6ff536ed357cf (plain) (blame)
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
test:
	python test.py

run:
	python portfolio.py

test_coverage_unit:
	coverage run --source=. --omit=test.py test.py --onlyunit
	coverage report -m

test_coverage_unit_html: test_coverage_unit
	coverage html
	rm ~/hosts/www.immae.eu/htmlcov -rf && cp -r htmlcov ~/hosts/www.immae.eu
	@echo "coverage in https://www.immae.eu/htmlcov"

test_coverage_acceptance:
	coverage run --source=. --omit=test.py test.py --onlyacceptance
	coverage report -m

test_coverage_acceptance_html: test_coverage_acceptance
	coverage html
	rm ~/hosts/www.immae.eu/htmlcov -rf && cp -r htmlcov ~/hosts/www.immae.eu
	@echo "coverage in https://www.immae.eu/htmlcov"

test_coverage_all:
	coverage run --source=. --omit=test.py test.py
	coverage report -m

test_coverage_all_html: test_coverage_all
	coverage html
	rm ~/hosts/www.immae.eu/htmlcov -rf && cp -r htmlcov ~/hosts/www.immae.eu
	@echo "coverage in https://www.immae.eu/htmlcov"