diff -r 0ff4c02a1871 -r 597f02c5cf5a tox.ini --- a/tox.ini Thu May 19 14:21:21 2016 +0200 +++ b/tox.ini Thu Jan 14 17:14:16 2016 +0100 @@ -22,23 +22,24 @@ sobjects: -r{toxinidir}/cubicweb/sobjects/test/requirements.txt web: -r{toxinidir}/cubicweb/web/test/requirements.txt wsgi: -r{toxinidir}/cubicweb/wsgi/test/requirements.txt + pytest commands = py34-cubicweb: touch {envdir}/share/cubicweb/cubes/__init__.py py34-server: touch {envdir}/share/cubicweb/cubes/__init__.py py34-sobjects: touch {envdir}/share/cubicweb/cubes/__init__.py py34-web: touch {envdir}/share/cubicweb/cubes/__init__.py cubicweb: {envpython} -m pip install --upgrade --no-deps --quiet git+git://github.com/logilab/yapps@master#egg=yapps - cubicweb: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/test {posargs} - dataimport: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/dataimport/test {posargs} - devtools: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/devtools/test {posargs} - entities: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/entities/test {posargs} - etwist: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/etwist/test {posargs} - ext: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/ext/test {posargs} - hooks: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/hooks/test {posargs} - server: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/server/test {posargs} - sobjects: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/sobjects/test {posargs} - web: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/web/test {posargs} - wsgi: {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/cubicweb/wsgi/test {posargs} + cubicweb: {envpython} -m pytest {toxinidir}/cubicweb/test {posargs} + dataimport: {envpython} -m pytest {toxinidir}/cubicweb/dataimport/test {posargs} + devtools: {envpython} -m pytest {toxinidir}/cubicweb/devtools/test {posargs} + entities: {envpython} -m pytest {toxinidir}/cubicweb/entities/test {posargs} + etwist: {envpython} -m pytest {toxinidir}/cubicweb/etwist/test {posargs} + ext: {envpython} -m pytest {toxinidir}/cubicweb/ext/test {posargs} + hooks: {envpython} -m pytest {toxinidir}/cubicweb/hooks/test {posargs} + server: {envpython} -m pytest {toxinidir}/cubicweb/server/test {posargs} + sobjects: {envpython} -m pytest {toxinidir}/cubicweb/sobjects/test {posargs} + web: {envpython} -m pytest {toxinidir}/cubicweb/web/test {posargs} + wsgi: {envpython} -m pytest {toxinidir}/cubicweb/wsgi/test {posargs} [testenv:doc] changedir = doc @@ -47,3 +48,6 @@ deps = sphinx commands = sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html + +[pytest] +python_files = *test_*.py