Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/265251
Change subject: Introduce tox as a test entry point
......................................................................
Introduce tox as a test entry point
files/kafkatee_ganglia.py embeds some tests. Use tox to setup a
virtualenv and run the test command into it.
Will let us enable CI for this repository.
Change-Id: I868d8e51c5d37dd81bc92913464d32bc64b68979
---
A .gitignore
M README.md
A tox.ini
3 files changed, 14 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet/varnishkafka
refs/changes/51/265251/1
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ff124d8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/.tox
+*.pyc
diff --git a/README.md b/README.md
index 7a965be..3944678 100644
--- a/README.md
+++ b/README.md
@@ -32,3 +32,7 @@
# to Ganglia.
class { 'varnishkafka::monitoring': }
```
+
+## Testing
+
+Run `tox` which setup appropriate virtualenvs and run commands for you.
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..3e5f89a
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,8 @@
+[tox]
+# No setup.py
+skipsdist = True
+envlist = py27
+
+[testenv]
+commands =
+ python -m unittest discover -v -s files -p *.py
--
To view, visit https://gerrit.wikimedia.org/r/265251
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I868d8e51c5d37dd81bc92913464d32bc64b68979
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet/varnishkafka
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits