Feature Requests: Browse | Submit New | Admin

[#26032] Parallel option?

Date:
2009-05-27 00:05
Priority:
1
Submitted By:
Daniel Berger (djberg96)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Parallel option?

Detailed description
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: Notepad

Please login


Followup

Message
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. :)

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
priority32009-05-30 02:51kou