Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 [tox] | 1 [tox] |
2 envlist = hg, notifications-nodeps, stats | 2 envlist = py27 |
3 skipsdist = true | 3 skipsdist = true |
4 | 4 |
5 [pytest] | 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. | |
6 python_files = *.py | 8 python_files = *.py |
9 | |
10 [run] | |
11 # Exclude tests from coverage. | |
12 omit = */test/* | |
7 | 13 |
8 [testenv] | 14 [testenv] |
9 basepython=python2 | 15 basepython=python2 |
10 deps = | 16 deps = |
11 pytest | 17 pytest |
18 pytest-cov | |
12 mock | 19 mock |
13 jinja2 | 20 jinja2 |
21 flake8 | |
22 pysed | |
23 | |
14 setenv = | 24 setenv = |
15 SITESCRIPTS_CONFIG = ./.sitescripts.example | 25 SITESCRIPTS_CONFIG = ./.sitescripts.test |
16 | 26 whitelist_externals = cp |
17 [testenv:filterhits] | |
18 # Depends on MySQL client (TODO: and server?). | |
mathias
2016/05/23 22:25:32
Probably libmysqlclient-dev plus maybe some common
| |
19 deps = | |
20 {[testenv]deps} | |
21 m2crypto | |
22 MySQL-python | |
23 commands = | 27 commands = |
24 py.test sitescripts/filterhits/test | 28 cp .sitescripts.example .sitescripts.test |
25 | 29 pysed \ |
26 [testenv:hg] | 30 -r sitescripts\.(reports|filterhits|testpages|crawler|urlfixer)\.web.* \ |
27 commands = py.test sitescripts/hg/test | 31 '' .sitescripts.test --write |
Sebastian Noack
2016/05/24 07:58:36
Is there any benefit on using py.test to invoke st
Vasily Kuznetsov
2016/05/24 18:15:36
Nicer reporting. Also it allows having a single re
| |
28 | |
29 [testenv:notifications-nodeps] | |
30 commands = py.test sitescripts/notifications/test/parser.py | |
31 | |
32 [testenv:notifications] | |
33 # Depends on MySQL client (TODO: and server?). | |
34 deps = | |
35 {[testenv]deps} | |
36 m2crypto | |
37 MySQL-python | |
38 commands = py.test sitescripts/notifications/test | |
39 | |
40 [testenv:stats] | |
41 commands = | |
42 python ensure_dependencies.py | 32 python ensure_dependencies.py |
43 py.test sitescripts/stats/test | 33 py.test \ |
34 --cov-config tox.ini --cov-report term --cov sitescripts \ | |
35 sitescripts/hg/test \ | |
36 sitescripts/notifications/test \ | |
37 sitescripts/stats/test | |
38 flake8 --ignore=E129,E501,E704,E711,E712,E713,E714,E731,F401,F841,F821 \ | |
39 sitescripts multiplexer.py multiplexer.fcgi | |
LEFT | RIGHT |