Bug triaging

Aaron Bentley aaron.bentley at utoronto.ca
Mon Oct 31 19:57:40 GMT 2005


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

John A Meinel wrote:
> Martin Pool wrote:
>>My thought was that these should raise special exceptions, to be
>>caught by our unittest subclasses.  I'd also like to add one for
>>'skipped', for tests that e.g. can't be done on particular platforms.
>>
>>So if someone wanted to run these on a different testrunner they'd
>>just be reported as failures, which seems nice.
> 
> 
> I agree. I would like to see:
> if sys.platform == 'win32':
>   raise Skipped()
> 
> And then the output wouldn't be OK, it would be SKIP, so that you would
> know certain tests weren't being run.

So we have an ExpectedFailure for unfixed bugs and Skipped for tests
that are platform-impossible?  Sounds pretty good.

We could have a @failing_test decorator that would rethrow any exception
 wrapped with ExpectedFailure, or else throw UnexpectedSuccess.  I think
UnexpectedSuccess is useful for keeping the test suite fresh.

We could also do @platform_test(platform.has_symlinks), etc, to skip tests.

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

iD8DBQFDZnc00F+nu1YWqI0RAkydAJ9MuALxasj5Th1gYvD8P5iJBDsKIACfe994
Yx2AxVONQXD1aoDCZri6/S0=
=jo9s
-----END PGP SIGNATURE-----




More information about the bazaar mailing list