mirror of https://github.com/ConsenSys/mythril
parent
d632798abb
commit
11a2bb7430
@ -1,10 +1,27 @@ |
|||||||
[tox] |
[tox] |
||||||
envlist = py34,py35,py36 |
envlist = py35,py36 |
||||||
|
|
||||||
[testenv] |
[testenv] |
||||||
deps=pipenv |
deps=pipenv |
||||||
whitelist_externals = mkdir |
whitelist_externals = mkdir |
||||||
commands= |
commands= |
||||||
pipenv install --dev --ignore-pipfile |
pipenv install --dev --ignore-pipfile |
||||||
mkdir -p {toxworkdir}/log/{envname} |
mkdir -p {toxinidir}/tests/testdata/outputs_current/ |
||||||
pipenv run py.test --junitxml={toxworkdir}/output/pytest/junit-{envname}.xml {posargs} |
py.test \ |
||||||
|
--junitxml={toxworkdir}/output/junit-{envname}.xml \ |
||||||
|
{posargs} |
||||||
|
|
||||||
|
[testenv:coverage] |
||||||
|
setenv = |
||||||
|
COVERAGE_FILE = .coveragerc |
||||||
|
deps = pytest-cov |
||||||
|
whitelist_externals = mkdir |
||||||
|
commands= |
||||||
|
pipenv install --dev --ignore-pipfile |
||||||
|
mkdir -p {toxinidir}/tests/testdata/outputs_current/ |
||||||
|
py.test \ |
||||||
|
--cov=mythril \ |
||||||
|
--cov-report=xml:{toxworkdir}/output/cov-{envname}.xml \ |
||||||
|
--cov-report=html:{toxworkdir}/output/cov-{envname}.html \ |
||||||
|
--junitxml={toxworkdir}/output/junit-{envname}.xml \ |
||||||
|
{posargs} |
||||||
|
Loading…
Reference in new issue