diff --git a/pytest.ini b/pytest.ini index 96a80ab759..29cd7bba4e 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,5 +1,5 @@ [pytest] -addopts= --showlocals +addopts= --showlocals --durations 50 --maxfail 10 python_paths= . xfail_strict=true log_format = %(levelname)8s %(asctime)s %(filename)20s %(message)s diff --git a/tox.ini b/tox.ini index c5445ccd86..cef888204d 100644 --- a/tox.ini +++ b/tox.ini @@ -15,20 +15,19 @@ ignore= [testenv] usedevelop=True passenv = - PYTEST_ADDOPTS TRAVIS_EVENT_TYPE commands= - core: pytest {posargs:tests/core/} - p2p: pytest {posargs:tests/p2p} - rpc-blockchain: pytest {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'not GeneralStateTests'} - rpc-state-frontier: pytest {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Frontier'} - rpc-state-homestead: pytest {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Homestead'} - rpc-state-eip150: pytest {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and EIP150'} - rpc-state-eip158: pytest {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and EIP158'} + core: pytest -n 4 {posargs:tests/core/} + p2p: pytest -n 4 {posargs:tests/p2p} + rpc-blockchain: pytest -n 4 {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'not GeneralStateTests'} + rpc-state-frontier: pytest -n 4 {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Frontier'} + rpc-state-homestead: pytest -n 4 {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Homestead'} + rpc-state-eip150: pytest -n 4 {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and EIP150'} + rpc-state-eip158: pytest -n 4 {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and EIP158'} # The following test seems to consume a lot of memory. Restricting to 3 processes reduces crashes - rpc-state-byzantium: pytest -n3 {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Byzantium'} - rpc-state-constantinople: pytest -n3 {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Constantinople'} - rpc-state-quadratic: pytest {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and stQuadraticComplexityTest'} + rpc-state-byzantium: pytest -n 3 {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Byzantium'} + rpc-state-constantinople: pytest -n 3 {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Constantinople'} + rpc-state-quadratic: pytest -n 4 {posargs:tests/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and stQuadraticComplexityTest'} lightchain_integration: pytest --integration {posargs:tests/integration/test_lightchain_integration.py} deps = .[p2p,trinity,test] @@ -43,7 +42,6 @@ whitelist_externals= make deps = .[p2p, trinity, doc] passenv = - PYTEST_ADDOPTS TRAVIS_EVENT_TYPE commands= make validate-docs @@ -81,7 +79,6 @@ use_develop=false [common-integration] deps = .[p2p,trinity,test] passenv = - PYTEST_ADDOPTS TRAVIS_EVENT_TYPE commands= pip install -e {toxinidir}/trinity-external-plugins/examples/peer_count_reporter