tool to run all of the python driver tests at once

This commit is contained in:
Mike Dirolf 2009-01-08 12:48:44 -05:00
parent 1b75ecd048
commit 289f87353a

20
run_tests.py Executable file
View File

@ -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()