some more test setup refinements and make example testing part of tox runs

This commit is contained in:
holger krekel
2020-03-04 11:36:28 +01:00
parent d8e14d9993
commit 33dd747ec7
4 changed files with 8 additions and 10 deletions

View File

@@ -1,2 +0,0 @@
from deltachat.testplugin import * # noqa

View File

@@ -22,6 +22,11 @@ def main():
packages=setuptools.find_packages('src'), packages=setuptools.find_packages('src'),
package_dir={'': 'src'}, package_dir={'': 'src'},
cffi_modules=['src/deltachat/_build.py:ffibuilder'], cffi_modules=['src/deltachat/_build.py:ffibuilder'],
entry_points = {
'pytest11': [
'deltachat.testplugin = deltachat.testplugin',
],
},
classifiers=[ classifiers=[
'Development Status :: 4 - Beta', 'Development Status :: 4 - Beta',
'Intended Audience :: Developers', 'Intended Audience :: Developers',

View File

@@ -5,9 +5,6 @@ import pytest
import py import py
from deltachat.testplugin import * # noqa
@pytest.fixture(scope="session") @pytest.fixture(scope="session")
def data(): def data():
class Data: class Data:

View File

@@ -7,9 +7,8 @@ envlist =
[testenv] [testenv]
commands = commands =
pytest -n6 --reruns 2 --reruns-delay 5 -v -rsXx --ignored {posargs:tests} pytest -n6 --reruns 2 --reruns-delay 5 -v -rsXx --ignored {posargs: tests examples}
pytest examples/test_examples.py # python tests/package_wheels.py {toxworkdir}/wheelhouse
python tests/package_wheels.py {toxworkdir}/wheelhouse
passenv = passenv =
TRAVIS TRAVIS
DCC_RS_DEV DCC_RS_DEV
@@ -68,7 +67,6 @@ commands =
[pytest] [pytest]
addopts = -v -ra --strict-markers addopts = -v -ra --strict-markers
python_files = tests/test_*.py
norecursedirs = .tox norecursedirs = .tox
xfail_strict=true xfail_strict=true
timeout = 90 timeout = 90