Feature Requests: Browse | Submit New | Admin
Hi, I came across this project for rspec that allows you to run tests in parallel: http://github.com/grosser/parallel_specs/tree/master Could something similar be implemented for test-unit as a way of increasing test speed? Regards, Dan
Add A Comment:
Date: 2010-01-07 19:43 Sender: Daniel Berger Using pipes sounds like a reasonable idea. I'd love to see that implemented. I'm not sure how to implement it, though. A socket pair, perhaps? Gotta think about Windows, too. Regards, Dan
Date: 2009-05-30 02:51 Sender: Kouhei Sutou test-unit provides priority mode. The mode reduces number of tests in a test. It increases test speed. To implement multi process test feature is not difficult but messy. I implemented it in Cutter, a unit testing framework for C. I think test output is very important to debug. If we just run multiple test-unit (rspec) processes in parallel, outputs of them are mixed. It causes NO debug friendly output. In Cutter, there are master process and child processes. Child processes send their results to master process via pipe. Test result is outputed by only master process. So outputs aren't mixed. If we add multi-process test running support, we will implement the same architecture of Cutter. If priority mode isn't satisfied you, we need to consider about it. Parallel mode is one of ideas. # Patch is welcome. :)