From 289f87353aff2b587fdf9fe87c5e653fe5f5fa56 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Thu, 8 Jan 2009 12:48:44 -0500 Subject: [PATCH] tool to run all of the python driver tests at once --- run_tests.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 run_tests.py diff --git a/run_tests.py b/run_tests.py new file mode 100755 index 000000000..f2205f456 --- /dev/null +++ b/run_tests.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +import unittest + +import bson +import objectid +import dbref + +def main(): + bson_suite = unittest.TestLoader().loadTestsFromModule(bson) + objectid_suite = unittest.TestLoader().loadTestsFromModule(objectid) + dbref_suite = unittest.TestLoader().loadTestsFromModule(dbref) + alltests = unittest.TestSuite([bson_suite, objectid_suite, dbref_suite]) + + unittest.TextTestRunner().run(objectid_suite) + unittest.TextTestRunner().run(dbref_suite) + unittest.TextTestRunner().run(bson_suite) + +if __name__ == "__main__": + main()