SUnit: Skipping tests?

Adrian Lienhard adi at netstyle.ch
Mon Mar 27 12:32:59 UTC 2006


You can override TestCase>>#expectedFailures in the test case.

HTH,
Adrian

On Mar 27, 2006, at 13:41 , David T. Lewis wrote:

> On Mon, Mar 27, 2006 at 11:18:58AM +0200, Adrian Lienhard wrote:
>> Maybe the "expected failures" feature of SUnit would do the job? You
>> let the tests in question fail but mark them as expected failures
>> depending on whether the resources are loaded or not. Visually, the
>> test runner will run yellow but explicitly state that it expected  
>> to so.
>
> Can you give an example of how to mark a test that is expected to
> fail?  I'm looking for something like the following, but I must be
> missing something obvious.
>
>   (SmalltalkImage current platformName = 'unix') ifFalse: [self  
> expectFailure]
>
> Thanks,
>
> Dave
>
>




More information about the Squeak-dev mailing list