tool to run all of the python driver tests at once
This commit is contained in:
parent
1b75ecd048
commit
289f87353a
20
run_tests.py
Executable file
20
run_tests.py
Executable 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()
|
||||
Loading…
Reference in New Issue
Block a user