Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Gonzalez <migonzalvar@gmail.com>2013-07-12 17:32:24 (GMT)
committer Miguel Gonzalez <migonzalvar@gmail.com>2013-07-12 17:32:24 (GMT)
commitd85bacb12a58240bb25f700250ba2ae1c8132c74 (patch)
tree6b0cd026274efeb84ad39b88db4923634100a8e2
parente1e75a6f854679b3fc6be030b2dce8fd61f3789b (diff)
Add coverage report
-rw-r--r--test2/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/test2/Makefile b/test2/Makefile
index 9f424fa..6de1393 100644
--- a/test2/Makefile
+++ b/test2/Makefile
@@ -1,4 +1,4 @@
-.PHONY: dropdb crc run test
+.PHONY: dropdb crc run test .coverage coverage
MYSQL_ARGS=--user=sc --password=sc
MYSQL_CLI=mysql $(MYSQL_ARGS) sc
@@ -19,3 +19,12 @@ test: dropdb run crc
clean:
rm -rf log/*
rm crc_test.txt
+ rm .coverage
+ rm -rf htmlcov/
+
+.coverage: dropdb
+ python ../.venv/bin/coverage run --source=../stats_consolidation \
+ ../stats_consolidation/stats_consolidation_run --config_file test.conf
+
+coverage: .coverage
+ coverage html