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: Created May 23, 2016, 9:50 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
« Vagrantfile ('K') | « Vagrantfile ('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,43 @@
+[tox]
+envlist = hg, notifications-nodeps, stats
+skipsdist = true
+
+[pytest]
+python_files = *.py
+
+[testenv]
+basepython=python2
+deps =
+ pytest
+ mock
+ jinja2
+setenv =
+ SITESCRIPTS_CONFIG = ./.sitescripts.example
+
+[testenv:filterhits]
+# Depends on MySQL client (TODO: and server?).
mathias 2016/05/23 22:25:32 Probably libmysqlclient-dev plus maybe some common
+deps =
+ {[testenv]deps}
+ m2crypto
+ MySQL-python
+commands =
+ py.test sitescripts/filterhits/test
+
+[testenv:hg]
+commands = py.test sitescripts/hg/test
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
+
+[testenv:notifications-nodeps]
+commands = py.test sitescripts/notifications/test/parser.py
+
+[testenv:notifications]
+# Depends on MySQL client (TODO: and server?).
+deps =
+ {[testenv]deps}
+ m2crypto
+ MySQL-python
+commands = py.test sitescripts/notifications/test
+
+[testenv:stats]
+commands =
+ python ensure_dependencies.py
+ py.test sitescripts/stats/test
« Vagrantfile ('K') | « Vagrantfile ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld