mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Merge pull request #1967 from sbellem/measure-branch-coverage
Closes #1736
This commit is contained in:
commit
73ba3f5eb0
@ -8,13 +8,13 @@ elif [[ "${BIGCHAINDB_DATABASE_BACKEND}" == mongodb && \
|
|||||||
-z "${BIGCHAINDB_DATABASE_SSL}" ]]; then
|
-z "${BIGCHAINDB_DATABASE_SSL}" ]]; then
|
||||||
# Run the full suite of tests for MongoDB over an unsecure connection
|
# Run the full suite of tests for MongoDB over an unsecure connection
|
||||||
pytest -sv --database-backend=mongodb -m "serial"
|
pytest -sv --database-backend=mongodb -m "serial"
|
||||||
pytest -sv --database-backend=mongodb --cov=bigchaindb -m "not serial"
|
pytest -sv --database-backend=mongodb --cov-config=setup.cfg --cov=bigchaindb -m "not serial"
|
||||||
elif [[ "${BIGCHAINDB_DATABASE_BACKEND}" == mongodb && \
|
elif [[ "${BIGCHAINDB_DATABASE_BACKEND}" == mongodb && \
|
||||||
"${BIGCHAINDB_DATABASE_SSL}" == true ]]; then
|
"${BIGCHAINDB_DATABASE_SSL}" == true ]]; then
|
||||||
# Run a sub-set of tests over SSL; those marked as 'pytest.mark.bdb_ssl'.
|
# Run a sub-set of tests over SSL; those marked as 'pytest.mark.bdb_ssl'.
|
||||||
pytest -sv --database-backend=mongodb-ssl --cov=bigchaindb -m bdb_ssl
|
pytest -sv --database-backend=mongodb-ssl --cov-config=setup.cfg --cov=bigchaindb -m bdb_ssl
|
||||||
else
|
else
|
||||||
# Run the full suite of tests for RethinkDB (the default backend when testing)
|
# Run the full suite of tests for RethinkDB (the default backend when testing)
|
||||||
pytest -sv -m "serial"
|
pytest -sv -m "serial"
|
||||||
pytest -sv --cov=bigchaindb -m "not serial"
|
pytest -sv --cov-config=setup.cfg --cov=bigchaindb -m "not serial"
|
||||||
fi
|
fi
|
||||||
|
@ -4,6 +4,7 @@ test=pytest
|
|||||||
[coverage:run]
|
[coverage:run]
|
||||||
source = .
|
source = .
|
||||||
omit = *test*
|
omit = *test*
|
||||||
|
branch = True
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
max_line_length = 119
|
max_line_length = 119
|
||||||
|
2
tox.ini
2
tox.ini
@ -15,7 +15,7 @@ setenv =
|
|||||||
deps = {[base]deps}
|
deps = {[base]deps}
|
||||||
install_command = pip install {opts} {packages}
|
install_command = pip install {opts} {packages}
|
||||||
extras = test
|
extras = test
|
||||||
commands = pytest -v -n auto --cov=bigchaindb --basetemp={envtmpdir}
|
commands = pytest -v -n auto --cov-config=setup.cfg --cov=bigchaindb --basetemp={envtmpdir}
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
basepython = {[base]basepython}
|
basepython = {[base]basepython}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user