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