forked from firebase/firebase-admin-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
33 lines (29 loc) · 721 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py2,py3,pypy,cover
[testenv]
passenv =
FIREBASE_DATABASE_EMULATOR_HOST
commands = pytest {posargs}
deps =
pytest
pytest-localserver
[coverbase]
basepython = python2.7
commands =
pytest \
--cov=firebase_admin \
--cov=tests
deps = {[testenv]deps}
coverage
pytest-cov
[testenv:cover]
basepython = {[coverbase]basepython}
commands =
{[coverbase]commands}
coverage report --show-missing
deps =
{[coverbase]deps}