- update the readme.unittests a bit
/docs/build/output/
*.orig
alembic.ini
-tox.ini
.venv
*.egg-info
.coverage
+.tox
Running Unit Tests
==================
-Tests can be run using the nosetests runner:
+Tests can be run be run using via py.test, nose, or the Python setup.py script::
- nosetests -v
+ py.test
-Or via the setup.py script:
+ nosetests -v
python setup.py test
+There's also a tox.ini file with several configurations::
+
+ tox
Setting up Optional Databases
------------------------------
[pytest]
addopts= --tb native -v -r fxX
-python_files=tests/*test_*.py
+python_files=tests/test_*.py
--- /dev/null
+[tox]
+envlist = full
+
+[testenv]
+deps=pytest
+ flake8
+ coverage
+ mock
+
+sitepackages=True
+usedevelop=True
+
+commands=
+ python -m pytest {posargs}
+
+[testenv:full]
+
+
+[testenv:coverage]
+
+commands=
+ python -m pytest \
+ --cov=alembic \
+ {posargs}
+ python -m coverage xml --include=alembic/*
+
+[testenv:pep8]
+commands = python -m flake8 {posargs}
+
+
+[flake8]
+
+show-source = True
+ignore = E711,E712,E721,F841,F811
+exclude=.venv,.git,.tox,dist,doc,*egg,build
+