Commits

Juancarlo Añez committed 083ff89

Run all tests as part of a single suite.

  • Participants
  • Parent commits abc995c

Comments (0)

Files changed (1)

File grako/test/__init__.py

 from __future__ import print_function, division, absolute_import, unicode_literals
 
 if __name__ == '__main__':
+    import unittest
     from . import bootstrap_tests
-    from . import  buffering_test
-    from . import  grammar_tests
+    from . import buffering_test
+    from . import grammar_tests
 
     bootstrap_tests.main()
-    buffering_test.main()
-    grammar_tests.main()
+
+    suite = unittest.TestSuite(tests=[
+        buffering_test.suite(),
+        grammar_tests.suite()
+    ])
+
+    unittest.TextTestRunner(verbosity=2).run(suite)