10 * License change, by unanimous agreement of contributors to BSD/Apache
11 License Version 2.0. This makes Subunit compatible with more testing
16 * CPPUnit is now directly supported: subunit builds a cppunit listener
17 ``libcppunit-subunit``.
19 * In the python API ``addExpectedFailure`` and ``addUnexpectedSuccess``
20 from python 2.7/3.1 are now supported. ``addExpectedFailure`` is
21 serialised as ``xfail``, and ``addUnexpectedSuccess`` as ``success``.
22 The ``ProtocolTestCase`` parser now calls outcomes using an extended
23 API that permits attaching arbitrary MIME resources such as text files
24 log entries and so on. This extended API is being developed with the
25 Python testing community, and is in flux. ``TestResult`` objects that
26 do not support the API will be detected and transparently downgraded
27 back to the regular Python unittest API.
29 * INSTALLDIRS can be set to control the perl MakeMaker 'INSTALLDIRS'
30 viarable when installing.
32 * Multipart test outcomes are tentatively supported; the exact protocol
33 for them, both serialiser and object is not yet finalised. Testers and
34 early adopters are sought. As part of this and also in an attempt to
35 provider a more precise focus on the wire protocol and toolchain,
36 Subunit now depends on testtools (http://launchpad.net/testtools)
37 release 0.9.0 or newer.
39 * The C library now has ``subunit_test_skip``.
43 * Install progress_model.py correctly.
45 * Non-gcc builds will no longer try to use gcc specific flags.
46 (Thanks trondn-norbye)
59 * A number of filters now support ``--no-passthrough`` to cause all
60 non-subunit content to be discarded. This is useful when precise control
61 over what is output is required - such as with subunit2junitxml.
63 * A small perl parser is now included, and a new ``subunit-diff`` tool
64 using that is included. (Jelmer Vernooij)
66 * Subunit streams can now include optional, incremental lookahead
67 information about progress. This allows reporters to make estimates
68 about completion, when such information is available. See the README
69 under ``progress`` for more details.
71 * ``subunit-filter`` now supports regex filtering via ``--with`` and
72 ``without`` options. (Martin Pool)
74 * ``subunit2gtk`` has been added, a filter that shows a GTK summary of a
77 * ``subunit2pyunit`` has a --progress flag which will cause the bzrlib
78 test reporter to be used, which has a textual progress bar. This requires
79 a recent bzrlib as a minor bugfix was required in bzrlib to support this.
81 * ``subunit2junitxml`` has been added. This filter converts a subunit
82 stream to a single JUnit style XML stream using the pyjunitxml
85 * The shell functions support skipping via ``subunit_skip_test`` now.
89 * ``xfail`` outcomes are now passed to python TestResult's via
90 addExpectedFailure if it is present on the TestResult. Python 2.6 and
91 earlier which do not have this function will have ``xfail`` outcomes
92 passed through as success outcomes as earlier versions of subunit did.
96 * tags are no longer passed around in python via the ``TestCase.tags``
97 attribute. Instead ``TestResult.tags(new_tags, gone_tags)`` is called,
98 and like in the protocol, if called while a test is active only applies
99 to that test. (Robert Collins)
101 * ``TestResultFilter`` takes a new optional constructor parameter
102 ``filter_predicate``. (Martin Pool)
104 * When a progress: directive is encountered in a subunit stream, the
105 python bindings now call the ``progress(offset, whence)`` method on
108 * When a time: directive is encountered in a subunit stream, the python
109 bindings now call the ``time(seconds)`` method on ``TestResult``.
113 * (python) Added ``subunit.test_results.AutoTimingTestResultDecorator``. Most
114 users of subunit will want to wrap their ``TestProtocolClient`` objects
115 in this decorator to get test timing data for performance analysis.
117 * (python) ExecTestCase supports passing arguments to test scripts.
119 * (python) New helper ``subunit.test_results.HookedTestResultDecorator``
120 which can be used to call some code on every event, without having to
121 implement all the event methods.
123 * (python) ``TestProtocolClient.time(a_datetime)`` has been added which
124 causes a timestamp to be output to the stream.