* Most filters will now accept a file path argument instead of only reading
from stdin. (Robert Collins, #409206)
+* Add ``subunit-output`` tool that can generate a Subunit v2 bytestream from
+ arguments passed on the command line. (Thomi Richards, #1252084)
+
0.0.15
------
IMPROVEMENTS
~~~~~~~~~~~~
-* New filter `subunit-notify` that will show a notification window with test
+* New filter `subunit-notify` that will show a notification window with test
statistics when the test run finishes.
-* subunit.run will now pipe its output to the command in the
+* subunit.run will now pipe its output to the command in the
SUBUNIT_FORMATTER environment variable, if set.
0.0.4
-----
CHANGES:
-
+
* License change, by unanimous agreement of contributors to BSD/Apache
License Version 2.0. This makes Subunit compatible with more testing
frameworks.
IMPROVEMENTS:
* CPPUnit is now directly supported: subunit builds a cppunit listener
- ``libcppunit-subunit``.
+ ``libcppunit-subunit``.
* In the python API ``addExpectedFailure`` and ``addUnexpectedSuccess``
from python 2.7/3.1 are now supported. ``addExpectedFailure`` is
* Multipart test outcomes are tentatively supported; the exact protocol
for them, both serialiser and object is not yet finalised. Testers and
early adopters are sought. As part of this and also in an attempt to
- provider a more precise focus on the wire protocol and toolchain,
+ provider a more precise focus on the wire protocol and toolchain,
Subunit now depends on testtools (http://launchpad.net/testtools)
release 0.9.0 or newer.
and like in the protocol, if called while a test is active only applies
to that test. (Robert Collins)
- * ``TestResultFilter`` takes a new optional constructor parameter
+ * ``TestResultFilter`` takes a new optional constructor parameter
``filter_predicate``. (Martin Pool)
* When a progress: directive is encountered in a subunit stream, the
class SafeArgumentParser(argparse.ArgumentParser):
+ """An ArgumentParser class that doesn't call sys.exit."""
def exit(self, status=0, message=""):
raise RuntimeError("ArgumentParser requested to exit with status "\
safe_parse_arguments = partial(parse_arguments, ParserClass=SafeArgumentParser)
-class OutputFilterArgumentTests(TestCase):
-
- """Tests for the command line argument parser."""
+class OutputFilterArgumentParserTests(TestCase):
_all_supported_commands = ('start', 'pass', 'fail', 'skip', 'exists')