Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 [tox] | |
2 envlist = py27 | |
3 skipsdist = true | |
4 | |
5 [pytest] | |
6 # The names of the test files here don't start with 'test_' so we need | |
7 # to instruct pytest to load tests from all files. | |
8 python_files = *.py | |
9 | |
10 [run] | |
11 # Exclude tests from coverage. | |
12 omit = */test/* | |
13 | |
14 [testenv] | |
15 basepython=python2 | |
16 deps = | |
17 pytest | |
18 pytest-cov | |
19 mock | |
20 jinja2 | |
21 setenv = | |
22 SITESCRIPTS_CONFIG = ./.sitescripts.test | |
23 whitelist_externals = | |
24 bash | |
25 rm | |
26 commands = | |
27 bash -c "sed -e 's/sitescripts\.[a-zA-Z_]*\.web.*/# &/' .sitescripts.example >.sitescripts.test" | |
Sebastian Noack
2016/05/25 07:51:36
Perhaps we should only exclude the web handlers th
Vasily Kuznetsov
2016/05/25 15:17:40
Done.
| |
28 python ensure_dependencies.py | |
29 py.test \ | |
Sebastian Noack
2016/05/25 07:51:36
I think we should also run flake8, probably with a
Vasily Kuznetsov
2016/05/25 15:17:40
Done.
Not sure if this is very meaningful at this
| |
30 --cov-config tox.ini --cov-report term \ | |
31 --cov sitescripts.hg \ | |
32 --cov sitescripts.notifications \ | |
33 --cov sitescripts.stats \ | |
34 sitescripts/hg/test \ | |
35 sitescripts/notifications/test \ | |
36 sitescripts/stats/test | |
37 rm .sitescripts.test | |
OLD | NEW |