[PATCH 2 of 2 hglib] add a script to run tests with nose plugins loaded

Idan Kamara idankk86 at gmail.com
Sat Oct 15 13:11:13 CDT 2011


# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1318702199 -7200
# Node ID 37307caccf54792423831ebda673246636730cfe
# Parent  f4f636ecca3ee65d39fd2dd9621a738121b1187c
add a script to run tests with nose plugins loaded

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -8,4 +8,4 @@
 .PHONY: tests
 
 tests:
-	nosetests --with-doctest
+	$(PYTHON) test.py --with-doctest
diff --git a/test.py b/test.py
new file mode 100644
--- /dev/null
+++ b/test.py
@@ -0,0 +1,7 @@
+#!/usr/bin/env python
+
+import nose
+from tests import with_hg
+
+if __name__ == '__main__':
+    nose.main(addplugins=[with_hg.WithHgPlugin()])


More information about the Mercurial-devel mailing list