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``.
23 * INSTALLDIRS can be set to control the perl MakeMaker 'INSTALLDIRS'
24 viarable when installing.
26 * Multipart test outcomes are tentatively supported; the exact protocol
27 for them, both serialiser and object is not yet finalised. Testers and
28 early adopters are sought.
30 * The C library now has ``subunit_test_skip``.
34 * Install progress_model.py correctly.
40 * subunit.test_results.ExtendedToOriginalDecorator provides an automatic
41 converter for multipart API use to unconverted code that does not
42 accept ``details`` parameters on outcomes.
51 * A number of filters now support ``--no-passthrough`` to cause all
52 non-subunit content to be discarded. This is useful when precise control
53 over what is output is required - such as with subunit2junitxml.
55 * A small perl parser is now included, and a new ``subunit-diff`` tool
56 using that is included. (Jelmer Vernooij)
58 * Subunit streams can now include optional, incremental lookahead
59 information about progress. This allows reporters to make estimates
60 about completion, when such information is available. See the README
61 under ``progress`` for more details.
63 * ``subunit-filter`` now supports regex filtering via ``--with`` and
64 ``without`` options. (Martin Pool)
66 * ``subunit2gtk`` has been added, a filter that shows a GTK summary of a
69 * ``subunit2pyunit`` has a --progress flag which will cause the bzrlib
70 test reporter to be used, which has a textual progress bar. This requires
71 a recent bzrlib as a minor bugfix was required in bzrlib to support this.
73 * ``subunit2junitxml`` has been added. This filter converts a subunit
74 stream to a single JUnit style XML stream using the pyjunitxml
77 * The shell functions support skipping via ``subunit_skip_test`` now.
81 * ``xfail`` outcomes are now passed to python TestResult's via
82 addExpectedFailure if it is present on the TestResult. Python 2.6 and
83 earlier which do not have this function will have ``xfail`` outcomes
84 passed through as success outcomes as earlier versions of subunit did.
88 * tags are no longer passed around in python via the ``TestCase.tags``
89 attribute. Instead ``TestResult.tags(new_tags, gone_tags)`` is called,
90 and like in the protocol, if called while a test is active only applies
91 to that test. (Robert Collins)
93 * ``TestResultFilter`` takes a new optional constructor parameter
94 ``filter_predicate``. (Martin Pool)
96 * When a progress: directive is encountered in a subunit stream, the
97 python bindings now call the ``progress(offset, whence)`` method on
100 * When a time: directive is encountered in a subunit stream, the python
101 bindings now call the ``time(seconds)`` method on ``TestResult``.
105 * (python) Added ``subunit.test_results.AutoTimingTestResultDecorator``. Most
106 users of subunit will want to wrap their ``TestProtocolClient`` objects
107 in this decorator to get test timing data for performance analysis.
109 * (python) ExecTestCase supports passing arguments to test scripts.
111 * (python) New helper ``subunit.test_results.HookedTestResultDecorator``
112 which can be used to call some code on every event, without having to
113 implement all the event methods.
115 * (python) ``TestProtocolClient.time(a_datetime)`` has been added which
116 causes a timestamp to be output to the stream.