Permalink
Browse files

comments

  • Loading branch information...
1 parent e713edc commit 685e99fe50c406b7895a018fc1fda877c78ef3b4 @cgoldberg committed Apr 1, 2012
Showing with 10 additions and 4 deletions.
  1. +10 −4 runtests.py
View
@@ -49,14 +49,20 @@
if __name__ == '__main__':
+ # for each module, there is a <module>_tests.py
+ # module containing unittest classes.
+ # they are referrenced and loaded below.
test_cases = [
cpu_stat_tests.TestCPUStats,
disk_stat_tests.TestDiskStats,
mem_stat_tests.TestMemoryStats,
net_stat_tests.TestNetworkStats,
- ]
-
- test_suites = [unittest.TestLoader().loadTestsFromTestCase(test_case)
- for test_case in test_cases]
+ ]
+ test_suites = [
+ unittest.TestLoader().loadTestsFromTestCase(test_case)
+ for test_case in test_cases
+ ]
all_tests = unittest.TestSuite(test_suites)
+
+ # run the tests
unittest.TextTestRunner(verbosity=2).run(all_tests)

0 comments on commit 685e99f

Please sign in to comment.