From: Daniel Berger Date: 2007-02-16T04:45:08+09:00 Subject: Re: Best way to skip tests On Feb 15, 12:32 pm, Alex Young wrote: > Daniel Berger wrote: > > Hi all, > > > What's the general approach folks use for skipping tests? Sometimes I > > have some tests that I want to skip based on platform (usually MS > > Windows). I saw the 'flunk' method, but that's considered a failed > > test. I'm looking for something that doesn't treat it as success or > > failure. > > If you were to factor the platform-dependent tests out into their own > module which you can conditionally include into the test case, I think > you'd get what you were after. It's not a bad idea, but that still wouldn't explicitly indicate to a user that tests had been skipped - they would merely see fewer tests run. Plus, it's more work and I'm lazy. :) Regards, Dan