aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-04 21:36:35 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-04 21:36:35 +0800
commit04bf18bdf6c0eebe987cbb0f450e70d686cf01d9 (patch)
tree232977f52f8c863ca429f44d5df257f24a77818a /Makefile
parentc3e2d564023c30271edbd7651ee3bd07e53ab9d8 (diff)
downloadfg21sim-04bf18bdf6c0eebe987cbb0f450e70d686cf01d9.tar.bz2
Integrate pytest for test support.
Credits: * http://doc.pytest.org/en/latest/goodpractices.html * https://github.com/kennethreitz/requests/blob/master/setup.py
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7c59716..c2c0690 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ default:
@echo " + devbuild"
@echo " (build and) install the package to the virtualenv"
@echo " + test"
- @echo " run the test cases"
+ @echo " run the tests"
# Create virtualenv and install/update the dependencies
venv: ${VENV}/bin/activate
@@ -33,6 +33,6 @@ ${VENV}/bin/activate: requirements.txt
devbuild: venv
./${VENV}/bin/python3 setup.py install
-# Run the test cases
+# Run the tests
test: devbuild
- ./${VENV}/bin/python3 tests/runtests.py
+ ./${VENV}/bin/python3 setup.py test