From 8ac344daf2b8357d7d2e5bdce628c03917b6161b Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sat, 17 Sep 2016 17:09:35 +0200 Subject: [PATCH] Update Makefile - add `make` target to run unittests - add a convenience `check` target (that runs unittests and flake8 for now) - remove `test_error_on_flowtext` target (we have unittests for that now) --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 4f018c1..52323c1 100644 --- a/Makefile +++ b/Makefile @@ -17,18 +17,19 @@ publish: clean python setup.py register python setup.py sdist upload +check: test flake8 + + + +test: + python testscour.py + test_version: PYTHONPATH=. python -m scour.scour --version test_help: PYTHONPATH=. python -m scour.scour --help -test_error_on_flowtext: - # this is fine .. - PYTHONPATH=. scour --error-on-flowtext unittests/flowtext-less.svg /dev/null - # .. and this should bail out! - PYTHONPATH=. scour --error-on-flowtext unittests/flowtext.svg /dev/null - flake8: flake8 --max-line-length=119