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

Unified Diff: tox.ini

Issue 29342955: Issue 3985 - Unified test runner for sitescripts (Closed)
Patch Set: Measure test coverage of everything in sitescripts Created May 25, 2016, 3:37 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « README.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tox.ini
===================================================================
new file mode 100644
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,39 @@
+[tox]
+envlist = py27
+skipsdist = true
+
+[pytest]
+# The names of the test files here don't start with 'test_' so we need
+# to instruct pytest to load tests from all files.
+python_files = *.py
+
+[run]
+# Exclude tests from coverage.
+omit = */test/*
+
+[testenv]
+basepython=python2
+deps =
+ pytest
+ pytest-cov
+ mock
+ jinja2
+ flake8
+ pysed
+
+setenv =
+ SITESCRIPTS_CONFIG = ./.sitescripts.test
+whitelist_externals = cp
+commands =
+ cp .sitescripts.example .sitescripts.test
+ pysed \
+ -r sitescripts\.(reports|filterhits|testpages|crawler|urlfixer)\.web.* \
+ '' .sitescripts.test --write
+ python ensure_dependencies.py
+ py.test \
+ --cov-config tox.ini --cov-report term --cov sitescripts \
+ sitescripts/hg/test \
+ sitescripts/notifications/test \
+ sitescripts/stats/test
+ flake8 --ignore=E129,E501,E704,E711,E712,E713,E714,E731,F401,F841,F821 \
+ sitescripts multiplexer.py multiplexer.fcgi
« no previous file with comments | « README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld