~bzr/ubuntu/hardy/subunit/bzr-ppa

« back to all changes in this revision

Viewing changes to NEWS

  • Committer: Robert Collins
  • Date: 2009-09-20 02:16:29 UTC
  • mfrom: (73.1.11 debian)
  • Revision ID: robertc@robertcollins.net-20090920021629-r3mal3003qren1or
Merge 0.0.2 release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
---------------------
 
2
subunit release notes
 
3
---------------------
 
4
 
 
5
 
 
6
0.0.2 (IN DEVELOPMENT)
 
7
----------------------
 
8
 
 
9
  CHANGES:
 
10
 
 
11
  IMPROVEMENTS:
 
12
 
 
13
    * A number of filters now support ``--no-passthrough`` to cause all
 
14
      non-subunit content to be discarded. This is useful when precise control
 
15
      over what is output is required - such as with subunit2junitxml.
 
16
 
 
17
    * A small perl parser is now included, and a new ``subunit-diff`` tool
 
18
      using that is included. (Jelmer Vernooij)
 
19
 
 
20
    * Subunit streams can now include optional, incremental lookahead
 
21
      information about progress. This allows reporters to make estimates
 
22
      about completion, when such information is available. See the README
 
23
      under ``progress`` for more details.
 
24
 
 
25
    * ``subunit-filter`` now supports regex filtering via ``--with`` and
 
26
      ``without`` options. (Martin Pool)
 
27
 
 
28
    * ``subunit2gtk`` has been added, a filter that shows a GTK summary of a
 
29
      test stream.
 
30
 
 
31
    * ``subunit2pyunit`` has a --progress flag which will cause the bzrlib
 
32
      test reporter to be used, which has a textual progress bar. This requires
 
33
      a recent bzrlib as a minor bugfix was required in bzrlib to support this.
 
34
 
 
35
    * ``subunit2junitxml`` has been added. This filter converts a subunit
 
36
      stream to a single JUnit style XML stream using the pyjunitxml
 
37
      python library.
 
38
 
 
39
    * The shell functions support skipping via ``subunit_skip_test`` now.
 
40
 
 
41
  BUG FIXES:
 
42
 
 
43
    * ``xfail`` outcomes are now passed to python TestResult's via
 
44
      addExpectedFailure if it is present on the TestResult. Python 2.6 and
 
45
      earlier which do not have this function will have ``xfail`` outcomes
 
46
      passed through as success outcomes as earlier versions of subunit did.
 
47
 
 
48
  API CHANGES:
 
49
 
 
50
    * tags are no longer passed around in python via the ``TestCase.tags``
 
51
      attribute. Instead ``TestResult.tags(new_tags, gone_tags)`` is called,
 
52
      and like in the protocol, if called while a test is active only applies
 
53
      to that test. (Robert Collins)
 
54
 
 
55
    * ``TestResultFilter`` takes a new optional constructor parameter 
 
56
      ``filter_predicate``.  (Martin Pool)
 
57
 
 
58
    * When a progress: directive is encountered in a subunit stream, the
 
59
      python bindings now call the ``progress(offset, whence)`` method on
 
60
      ``TestResult``.
 
61
 
 
62
    * When a time: directive is encountered in a subunit stream, the python
 
63
      bindings now call the ``time(seconds)`` method on ``TestResult``.
 
64
 
 
65
  INTERNALS:
 
66
 
 
67
    * (python) Added ``subunit.test_results.AutoTimingTestResultDecorator``. Most
 
68
      users of subunit will want to wrap their ``TestProtocolClient`` objects
 
69
      in this decorator to get test timing data for performance analysis.
 
70
 
 
71
    * (python) ExecTestCase supports passing arguments to test scripts.
 
72
 
 
73
    * (python) New helper ``subunit.test_results.HookedTestResultDecorator``
 
74
      which can be used to call some code on every event, without having to
 
75
      implement all the event methods.
 
76
 
 
77
    * (python) ``TestProtocolClient.time(a_datetime)`` has been added which
 
78
      causes a timestamp to be output to the stream.