diff tests/run.py @ 16:48a44546c12f

Add a basic system for running the hgsubversion tests (although not the svnwrap ones) without requiring Nose. Nose is still the recommended way to run the tests. Also added some tests for pushing.
author Augie Fackler <durin42@gmail.com>
date Tue, 07 Oct 2008 22:13:14 -0500
parents
children 31aa63ac778c
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/tests/run.py
@@ -0,0 +1,19 @@
+import os
+import sys
+import unittest
+
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+
+import test_fetch_command
+import test_fetch_command_regexes
+import test_push_command
+
+def suite():
+    return unittest.TestSuite([test_fetch_command.suite(),
+                               test_fetch_command_regexes.suite(),
+                               test_fetch_command_regexes.suite(),
+                              ])
+
+if __name__ == '__main__':
+    runner = unittest.TextTestRunner()
+    runner.run(suite())