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)
This commit is contained in:
parent
18970e0ba1
commit
8ac344daf2
1 changed files with 7 additions and 6 deletions
13
Makefile
13
Makefile
|
|
@ -17,18 +17,19 @@ publish: clean
|
||||||
python setup.py register
|
python setup.py register
|
||||||
python setup.py sdist upload
|
python setup.py sdist upload
|
||||||
|
|
||||||
|
check: test flake8
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
test:
|
||||||
|
python testscour.py
|
||||||
|
|
||||||
test_version:
|
test_version:
|
||||||
PYTHONPATH=. python -m scour.scour --version
|
PYTHONPATH=. python -m scour.scour --version
|
||||||
|
|
||||||
test_help:
|
test_help:
|
||||||
PYTHONPATH=. python -m scour.scour --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:
|
||||||
flake8 --max-line-length=119
|
flake8 --max-line-length=119
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue