Line 0
Link Here
|
|
|
1 |
Subunit is a streaming protocol for test results. |
2 |
|
3 |
There are two major revisions of the protocol. Version 1 was trivially human |
4 |
readable but had significant defects as far as highly parallel testing was |
5 |
concerned - it had no room for doing discovery and execution in parallel, |
6 |
required substantial buffering when multiplexing and was fragile - a corrupt |
7 |
byte could cause an entire stream to be misparsed. Version 1.1 added |
8 |
encapsulation of binary streams which mitigated some of the issues but the core |
9 |
remained. |
10 |
|
11 |
Version 2 shares many of the good characteristics of Version 1 - it can be |
12 |
embedded into a regular text stream (e.g. from a build system) and it still |
13 |
models xUnit style test execution. It also fixes many of the issues with |
14 |
Version 1 - Version 2 can be multiplexed without excessive buffering (in time |
15 |
or space), it has a well defined recovery mechanism for dealing with corrupted |
16 |
streams (e.g. where two processes write to the same stream concurrently, or |
17 |
where the stream generator suffers a bug). |
18 |
|
19 |
WWW: http://launchpad.net/subunit |