[MERGE] test framework distinguishes skips

Aaron Bentley aaron.bentley at utoronto.ca
Thu Jul 6 22:33:44 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

This patch introduces three new subclasses of TestSkipped, and test case
decorators to auto-raise them in the right circumstances.  It also
applies these decorators to our current set of test cases.

The fails_with and may_fail_with decorators will raise ExpectedFailure.
 This indicates that a test failure is expected some or all of the time.
fails_with can be used to introduce failing test cases without breaking
the test suite.  may_fail_with supports occasional errors like
UninitializableFormat, which is permitted for format 0.0.4, but no
others.  This class of skips cannot be, and is not intended to be, run,
without changing the source code.

The dependency_failure decorator indicates that the failure was due to a
missing dependency, e.g. lsprof or paramiko.  This class of skips can be
run if the user installs the dependency.

The platform_requirement decorator indicates that this test requires
facilities that are not supported by some platforms.  This class of
skips can be run on another platform.

A future direction would be to print out the list of dependency failures
and the list of unmet platform requirements at the end of test runs.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFErYG40F+nu1YWqI0RAh9WAJ9m/DMsuJKz7Ro3ozJC00FKEUwRswCfaZPZ
P49d0cP6aH1RKfIx6fJpUQI=
=gU72
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-framework.patch
Type: text/x-patch
Size: 39667 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060706/74e2277f/attachment.bin 


More information about the bazaar mailing list