Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: tox.ini

Issue 29342955: Issue 3985 - Unified test runner for sitescripts (Closed)
Left Patch Set: Remove filterhits, remove dependencies for notifications tests, make everything run in one environm… Created May 24, 2016, 6:09 p.m.
Right Patch Set: Measure test coverage of everything in sitescripts Created May 25, 2016, 3:37 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « README.md ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 [tox] 1 [tox]
2 envlist = py27 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 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. 7 # to instruct pytest to load tests from all files.
8 python_files = *.py 8 python_files = *.py
9 9
10 [run] 10 [run]
11 # Exclude tests from coverage. 11 # Exclude tests from coverage.
12 omit = */test/* 12 omit = */test/*
13 13
14 [testenv] 14 [testenv]
15 basepython=python2 15 basepython=python2
16 deps = 16 deps =
17 pytest 17 pytest
18 pytest-cov 18 pytest-cov
19 mock 19 mock
20 jinja2 20 jinja2
21 flake8
22 pysed
23
21 setenv = 24 setenv =
22 SITESCRIPTS_CONFIG = ./.sitescripts.test 25 SITESCRIPTS_CONFIG = ./.sitescripts.test
23 whitelist_externals = 26 whitelist_externals = cp
24 bash
25 rm
26 commands = 27 commands =
27 bash -c "sed -e 's/sitescripts\.[a-zA-Z_]*\.web.*/# &/' .sitescripts.example >.sitescripts.test" 28 cp .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.
29 pysed \
30 -r sitescripts\.(reports|filterhits|testpages|crawler|urlfixer)\.web.* \
31 '' .sitescripts.test --write
28 python ensure_dependencies.py 32 python ensure_dependencies.py
29 py.test \ 33 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 \ 34 --cov-config tox.ini --cov-report term --cov sitescripts \
31 --cov sitescripts.hg \
32 --cov sitescripts.notifications \
33 --cov sitescripts.stats \
34 sitescripts/hg/test \ 35 sitescripts/hg/test \
35 sitescripts/notifications/test \ 36 sitescripts/notifications/test \
36 sitescripts/stats/test 37 sitescripts/stats/test
37 rm .sitescripts.test 38 flake8 --ignore=E129,E501,E704,E711,E712,E713,E714,E731,F401,F841,F821 \
39 sitescripts multiplexer.py multiplexer.fcgi
LEFTRIGHT
« README.md ('k') | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld