mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +03:00
some more test setup refinements and make example testing part of tox runs
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
|
|
||||||
from deltachat.testplugin import * # noqa
|
|
||||||
@@ -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',
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user