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