Add testing configuration.

This commit is contained in:
Shiz 2014-03-13 16:49:16 +01:00
parent a4f04d796f
commit 96e1b17be3
4 changed files with 21 additions and 1 deletions

3
.coveragerc Normal file
View File

@ -0,0 +1,3 @@
[run]
branch = True
source = pydle

3
.gitignore vendored
View File

@ -5,3 +5,6 @@ __pycache__
*.swo
/docs/_build
/.coverage
/.tox
/*.egg-info

View File

@ -15,7 +15,9 @@ setup(
requires=['tornado'],
extras_require={
'SASL': 'pure-sasl >=0.1.6', # for pydle.features.sasl
'Generating documentation': 'sphinx_rtd_theme' # the Sphinx theme we use
'Generating documentation': 'sphinx_rtd_theme', # the Sphinx theme we use
'Running tests': 'pytest', # collect and run tests
'Getting test case coverage': 'pytest-cov' # get test case coverage
},
entry_points={
'console_scripts': [

12
tox.ini Normal file
View File

@ -0,0 +1,12 @@
[tox]
envlist = py32,py33
[testenv]
deps =
pytest
pytest-cov
commands = py.test --cov pydle --cov-config .coveragerc --cov-report term-missing .
[pytest]
markers =
slow: may take several seconds or more to complete.