[Pharo-project] ExpectedFailures in SUnit
Mariano Martinez Peck
marianopeck at gmail.com
Wed Oct 20 07:40:54 EDT 2010
On Wed, Oct 20, 2010 at 12:15 PM, Niko Schwarz
<niko.schwarz at googlemail.com>wrote:
> Currently, to mark a test as an expected failure, `expectedFailures`
> should be overwritten
> That's a bit tricky to figure out, so I added a comment to the method:
> SUnit-NikoSchwarz.114. However, I think it's still a usability bug:
> marking something as an expectedFailure isn't visible inside the test.
> I think expectedFailures should look through the pragmas of its tests
> and return an array of all method names that contain the pragma
Yes, that's better. But in addition, sometimes we need conditions. For
Smalltalk listPlugins contains: 'blahhh' ifFalse[ expectedFailures add:
or whatever condition. Can you do that with pragmas?
the other problem is that we don't have expectedErrors as well. This is bad
> Tel: +41 076 235 8683
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pharo-dev