add a script to run tests with nose plugins loaded
author |
Idan Kamara <idankk86@gmail.com> |
date |
Sat, 15 Oct 2011 20:09:59 +0200 |
parents |
f4f636ecca3e |
children |
4282391dd693 |
files |
Makefile test.py |
diffstat |
2 files changed, 8 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/Makefile Sat Oct 15 20:03:04 2011 +0200
+++ b/Makefile Sat Oct 15 20:09:59 2011 +0200
@@ -8,4 +8,4 @@
.PHONY: tests
tests:
- nosetests --with-doctest
+ $(PYTHON) test.py --with-doctest
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test.py Sat Oct 15 20:09:59 2011 +0200
@@ -0,0 +1,7 @@
+#!/usr/bin/env python
+
+import nose
+from tests import with_hg
+
+if __name__ == '__main__':
+ nose.main(addplugins=[with_hg.WithHgPlugin()])