Release 0.0.13.
[third_party/subunit] / NEWS
1 ---------------------
2 subunit release notes
3 ---------------------
4
5 NEXT (In development)
6 ---------------------
7
8 0.0.13
9 ------
10
11 IMPROVEMENTS
12 ~~~~~~~~~~~~
13
14 * subunit should now build with automake 1.11 again. (Robert Collins)
15
16 * `subunit-stats` no longer outputs encapsulated stdout as subunit.
17   (Robert Collins, #1171987)
18
19 * The logic for `subunit.run` is now importable via python -
20   `subunit.run.main`. (Robert Collins, #606770)
21
22 BUG FIXES
23 ~~~~~~~~~
24
25 * Removed GPL files that were (C) non Subunit Developers - they are
26   incompatible for binary distribution, which affects redistributors.
27   (Robert Collins, #1185591)
28
29 0.0.12
30 ------
31
32 BUG FIXES
33 ~~~~~~~~~
34
35 * Subunit v2 packets with both file content and route code were not being
36   parsed correctly - they would incorrectly emit a parser error, due to trying
37   to parse the route code length from the first byes of the file content.
38   (Robert Collins, 1172815)
39
40 0.0.11
41 ------
42
43 v2 protocol draft included in this release. The v2 protocol trades off human
44 readability for a massive improvement in robustness, the ability to represent
45 concurrent tests in a single stream, cheaper parsing, and that provides
46 significantly better in-line debugging support and structured forwarding
47 of non-test data (such as stdout or stdin data).
48
49 This change includes two new filters (subunit-1to2 and subunit-2to1). Use
50 these filters to convert old streams to v2 and convert v2 streams to v1.
51
52 All the other filters now only parse and emit v2 streams. V2 is still in
53 draft format, so if you want to delay and wait for v2 to be finalised, you
54 should use subunit-2to1 before any serialisation steps take place.
55 With the ability to encapsulate multiple non-test streams, another significant
56 cange is that filters which emit subunit now encapsulate any non-subunit they
57 encounter, labelling it 'stdout'. This permits multiplexing such streams and
58 detangling the stdout streams from each input.
59
60 The subunit libraries (Python etc) have not changed their behaviour: they
61 still emit v1 from their existing API calls. New API's are being added
62 and applications should migrate once their language has those API's available.
63
64 IMPROVEMENTS
65 ~~~~~~~~~~~~
66
67 * ``subunit.run`` now replaces sys.stdout to ensure that stdout is unbuffered
68   - without this pdb output is not reliably visible when stdout is a pipe
69   as it usually is. (Robert Collins)
70
71 * v2 protocol draft included in this release. (Python implementation only so
72   far). (Robert Collins)
73
74 * Two new Python classes -- ``StreamResultToBytes`` and
75   ``ByteStreamToStreamResult`` handle v2 generation and parsing.
76   (Robert Collins)
77
78 0.0.10
79 ------
80
81 BUG FIXES
82 ~~~~~~~~~
83
84 * make_stream_binary is now public for reuse. (Robert Collins)
85
86 * NAME was not defined in the protocol BNF. (Robert Collins)
87
88 * UnsupportedOperation is available in the Python2.6 io library, so ask
89   forgiveness rather than permission for obtaining it. (Robert Collins)
90
91 * Streams with no fileno() attribute are now supported, but they are not
92   checked for being in binary mode: be sure to take care of that if using
93   the library yourself. (Robert Collins)
94
95 0.0.9
96 -----
97
98 BUG FIXES
99 ~~~~~~~~~
100
101 * All the source files are now included in the distribution tarball.
102   (Arfrever Frehtes Taifersar Arahesis, Robert Collins, #996275)
103
104 * ``python/subunit/tests/test_run.py`` and ``python/subunit/filters.py`` were
105   not included in the 0.0.8 tarball. (Robert Collins)
106
107 * Test ids which include non-ascii unicode characters are now supported.
108   (Robert Collins, #1029866)
109
110 * The ``failfast`` option to ``subunit.run`` will now work. The dependency on
111   testtools has been raised to 0.9.23 to permit this.
112   (Robert Collins, #1090582)
113
114 0.0.8
115 -----
116
117 IMPROVEMENTS
118 ~~~~~~~~~~~~
119
120 * Perl module now correctly outputs "failure" instead of "fail".  (Stewart Smith)
121
122 * Shell functions now output timestamps. (Stewart Smith, Robert Collins)
123
124 * 'subunit2csv' script that converts subunit output to CSV format.
125   (Jonathan Lange)
126
127 * ``TagCollapsingDecorator`` now correctly distinguishes between local and
128   global tags.  (Jonathan Lange)
129
130 * ``TestResultFilter`` always forwards ``time:`` events.
131   (Benji York, Brad Crittenden)
132
133 BUG FIXES
134 ~~~~~~~~~
135
136 * Add 'subunit --no-xfail', which will omit expected failures from the subunit
137   stream. (John Arbash Meinel, #623642)
138
139 * Add 'subunit -F/--only-genuine-failures' which sets all of '--no-skips',
140   '--no-xfail', '--no-passthrough, '--no-success', and gives you just the
141   failure stream. (John Arbash Meinel)
142
143 * Python2.6 support was broken by the fixup feature.
144   (Arfrever Frehtes Taifersar Arahesis, #987490)
145
146 * Python3 support regressed in trunk.
147   (Arfrever Frehtes Taifersar Arahesis, #987514)
148
149 * Python3 support was insufficiently robust in detecting unicode streams.
150   (Robert Collins, Arfrever Frehtes Taifersar Arahesis)
151
152 * Tag support has been implemented for TestProtocolClient.
153   (Robert Collins, #518016)
154
155 * Tags can now be filtered. (Jonathan Lange, #664171)
156
157 * Test suite works with latest testtools (but not older ones - formatting
158   changes only). (Robert Collins)
159
160 0.0.7
161 -----
162
163 The Subunit Python test runner ``python -m subunit.run`` can now report the
164 test ids and also filter via a test id list file thanks to improvements in
165 ``testtools.run``. See the testtools manual, or testrepository - a major
166 user of such functionality.
167
168 Additionally the protocol now has a keyword uxsuccess for Unexpected Success
169 reporting. Older parsers will report tests with this status code as 'lost
170 connection'.
171
172 IMPROVEMENTS
173 ~~~~~~~~~~~~
174
175 * Add ``TimeCollapsingDecorator`` which collapses multiple sequential time()
176   calls into just the first and last. (Jonathan Lange)
177
178 * Add ``TagCollapsingDecorator`` which collapses many tags() calls into one
179   where possible. (Jonathan Lange, Robert Collins)
180
181 * Force flush of writes to stdout in c/tests/test_child.
182   (Jelmer Vernooij, #687611)
183
184 * Provisional Python 3.x support.
185   (Robert Collins, Tres Seaver, Martin[gz], #666819)
186
187 * ``subunit.chunked.Decoder`` Python class takes a new ``strict`` option,
188   which defaults to ``True``. When ``False``, the ``Decoder`` will accept
189   incorrect input that is still unambiguous. i.e. subunit will not barf if
190   a \r is missing from the input. (Martin Pool)
191
192 * ``subunit-filter`` preserves the relative ordering of ``time:`` statements,
193   so you can now use filtered streams to gather data about how long it takes
194   to run a test. (Jonathan Lange, #716554)
195
196 * ``subunit-ls`` now handles a stream with time: instructions that start
197   partway through the stream (which may lead to strange times) more gracefully.
198   (Robert Collins, #785954)
199
200 * ``subunit-ls`` should handle the new test outcomes in Python2.7 better.
201   (Robert Collins, #785953)
202
203 * ``TestResultFilter`` now collapses sequential calls to time().
204   (Jonathan Lange, #567150)
205
206 * ``TestResultDecorator.tags()`` now actually works, and is no longer a buggy
207   copy/paste of ``TestResultDecorator.time()``. (Jonathan Lange, #681828)
208
209 * ``TestResultFilter`` now supports a ``fixup_expected_failures``
210   argument. (Jelmer Vernooij, #755241)
211
212 * The ``subunit.run`` Python module supports ``-l`` and ``--load-list`` as
213   per ``testtools.run``. This required a dependency bump due to a small
214   API change in ``testtools``. (Robert Collins)
215
216 * The help for subunit-filter was confusing about the behaviour of ``-f`` /
217   ``--no-failure``. (Robert Collins, #703392)
218
219 * The Python2.7 / testtools addUnexpectedSuccess API is now supported. This
220   required adding a new status code to the protocol. (Robert Collins, #654474)
221
222 CHANGES
223 ~~~~~~~
224
225 * testtools 0.9.11 or newer is new needed (due to the Python 3 support).
226   (Robert Collins)
227
228 0.0.6
229 -----
230
231 This release of subunit fixes a number of unicode related bugs. This depends on
232 testtools 0.9.4 and will not function without it. Thanks to Tres Seaver there
233 is also an optional native setup.py file for use with easy_install and the
234 like.
235
236 BUG FIXES
237 ~~~~~~~~~
238
239 * Be consistent about delivering unicode content to testtools StringException
240   class which has become (appropriately) conservative. (Robert Collins)
241
242 * Fix incorrect reference to subunit_test_failf in c/README.
243   (Brad Hards, #524341)
244
245 * Fix incorrect ordering of tags method parameters in TestResultDecorator. This
246   is purely cosmetic as the parameters are passed down with no interpretation.
247   (Robert Collins, #537611)
248
249 * Old style tracebacks with no encoding info are now treated as UTF8 rather
250   than some-random-codec-like-ascii. (Robert Collins)
251
252 * On windows, ProtocolTestCase and TestProtocolClient will set their streams to
253   binary mode by calling into msvcrt; this avoids having their input or output
254   mangled by the default line ending translation on that platform.
255   (Robert Collins, Martin [gz], #579296)
256
257 IMPROVEMENTS
258 ~~~~~~~~~~~~
259
260 * Subunit now has a setup.py for python deployments that are not using
261   distribution packages. (Tres Seaver, #538181)
262
263 * Subunit now supports test discovery by building on the testtools support for
264   it. You can take advantage of it with "python -m subunit.run discover [path]"
265   and see "python -m subunit.run discover --help" for more options.
266
267 * Subunit now uses the improved unicode support in testtools when outputting
268   non-details based test information; this should consistently UTF8 encode such
269   strings.
270
271 * The Python TestProtocolClient now flushes output on startTest and stopTest.
272   (Martin [gz]).
273
274
275 0.0.5
276 -----
277
278 BUG FIXES
279 ~~~~~~~~~
280
281 * make check was failing if subunit wasn't installed due to a missing include
282   path for the test program test_child.
283
284 * make distcheck was failing due to a missing $(top_srcdir) rune.
285
286 IMPROVEMENTS
287 ~~~~~~~~~~~~
288
289 * New filter `subunit-notify` that will show a notification window with test 
290   statistics when the test run finishes.
291
292 * subunit.run will now pipe its output to the command in the 
293   SUBUNIT_FORMATTER environment variable, if set.
294
295 0.0.4
296 -----
297
298 BUG FIXES
299 ~~~~~~~~~
300
301 * subunit2junitxml -f required a value, this is now fixed and -f acts as a
302   boolean switch with no parameter.
303
304 * Building with autoconf 2.65 is now supported.
305
306
307 0.0.3
308 -----
309
310   CHANGES:
311   
312     * License change, by unanimous agreement of contributors to BSD/Apache
313       License Version 2.0. This makes Subunit compatible with more testing
314       frameworks.
315
316   IMPROVEMENTS:
317
318     * CPPUnit is now directly supported: subunit builds a cppunit listener
319       ``libcppunit-subunit``. 
320
321     * In the python API ``addExpectedFailure`` and ``addUnexpectedSuccess``
322       from python 2.7/3.1 are now supported. ``addExpectedFailure`` is
323       serialised as ``xfail``, and ``addUnexpectedSuccess`` as ``success``.
324       The ``ProtocolTestCase`` parser now calls outcomes using an extended
325       API that permits attaching arbitrary MIME resources such as text files
326       log entries and so on. This extended API is being developed with the
327       Python testing community, and is in flux. ``TestResult`` objects that
328       do not support the API will be detected and transparently downgraded
329       back to the regular Python unittest API.
330
331     * INSTALLDIRS can be set to control the perl MakeMaker 'INSTALLDIRS'
332       viarable when installing.
333
334     * Multipart test outcomes are tentatively supported; the exact protocol
335       for them, both serialiser and object is not yet finalised. Testers and
336       early adopters are sought. As part of this and also in an attempt to
337       provider a more precise focus on the wire protocol and toolchain, 
338       Subunit now depends on testtools (http://launchpad.net/testtools)
339       release 0.9.0 or newer.
340
341     * subunit2junitxml supports a new option, --forward which causes it
342       to forward the raw subunit stream in a similar manner to tee. This
343       is used with the -o option to both write a xml report and get some
344       other subunit filter to process the stream.
345
346     * The C library now has ``subunit_test_skip``.
347
348   BUG FIXES:
349
350     * Install progress_model.py correctly.
351
352     * Non-gcc builds will no longer try to use gcc specific flags.
353       (Thanks trondn-norbye)
354
355   API CHANGES:
356
357   INTERNALS:
358
359 0.0.2
360 -----
361
362   CHANGES:
363
364   IMPROVEMENTS:
365
366     * A number of filters now support ``--no-passthrough`` to cause all
367       non-subunit content to be discarded. This is useful when precise control
368       over what is output is required - such as with subunit2junitxml.
369
370     * A small perl parser is now included, and a new ``subunit-diff`` tool
371       using that is included. (Jelmer Vernooij)
372
373     * Subunit streams can now include optional, incremental lookahead
374       information about progress. This allows reporters to make estimates
375       about completion, when such information is available. See the README
376       under ``progress`` for more details.
377
378     * ``subunit-filter`` now supports regex filtering via ``--with`` and
379       ``without`` options. (Martin Pool)
380
381     * ``subunit2gtk`` has been added, a filter that shows a GTK summary of a
382       test stream.
383
384     * ``subunit2pyunit`` has a --progress flag which will cause the bzrlib
385       test reporter to be used, which has a textual progress bar. This requires
386       a recent bzrlib as a minor bugfix was required in bzrlib to support this.
387
388     * ``subunit2junitxml`` has been added. This filter converts a subunit
389       stream to a single JUnit style XML stream using the pyjunitxml
390       python library.
391
392     * The shell functions support skipping via ``subunit_skip_test`` now.
393
394   BUG FIXES:
395
396     * ``xfail`` outcomes are now passed to python TestResult's via
397       addExpectedFailure if it is present on the TestResult. Python 2.6 and
398       earlier which do not have this function will have ``xfail`` outcomes
399       passed through as success outcomes as earlier versions of subunit did.
400
401   API CHANGES:
402
403     * tags are no longer passed around in python via the ``TestCase.tags``
404       attribute. Instead ``TestResult.tags(new_tags, gone_tags)`` is called,
405       and like in the protocol, if called while a test is active only applies
406       to that test. (Robert Collins)
407
408     * ``TestResultFilter`` takes a new optional constructor parameter 
409       ``filter_predicate``.  (Martin Pool)
410
411     * When a progress: directive is encountered in a subunit stream, the
412       python bindings now call the ``progress(offset, whence)`` method on
413       ``TestResult``.
414
415     * When a time: directive is encountered in a subunit stream, the python
416       bindings now call the ``time(seconds)`` method on ``TestResult``.
417
418   INTERNALS:
419
420     * (python) Added ``subunit.test_results.AutoTimingTestResultDecorator``. Most
421       users of subunit will want to wrap their ``TestProtocolClient`` objects
422       in this decorator to get test timing data for performance analysis.
423
424     * (python) ExecTestCase supports passing arguments to test scripts.
425
426     * (python) New helper ``subunit.test_results.HookedTestResultDecorator``
427       which can be used to call some code on every event, without having to
428       implement all the event methods.
429
430     * (python) ``TestProtocolClient.time(a_datetime)`` has been added which
431       causes a timestamp to be output to the stream.