CleanCut / green

Green is a clean, colorful, fast python test runner.
MIT License
792 stars 75 forks source link

RFC: Paralellize on module level by default #71

Closed smspillaz closed 9 years ago

smspillaz commented 9 years ago

There's a few rough edges, and a few places where I need some comments and ideas on what to do.

toParallelTestTargets subdivides a GreenTestSuite into a set of strings representing loadable targets for the runner. It actually subdivides all the way at the moment until we reach something that looks like a unittest.TestCase, at which point it checks that class and its module to see if any serial-indicating methods are defined such that only the class or module name should be returned.

poolRunner was also adjusted to return its results via a queue - it may run multiple tests now and needs to indicate to the parent runner both when a test has started and finished.