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
I guess I’d like something like this:
class TC_Foo < Test::Unit::TestCase
skip(‘There’s no Foo::Bar on MS Windows - skipped’)
And then output that looked like this:
1 tests, 0 assertions, 0 failures, 0 errors, 1 skipped
If there isn’t anything like this currently, would patches to add this
be accepted? I’d be happy to work on it.
PS - Yes, I realize I could wrap the whole test_bar method in an ‘if’
clause. I don’t want to do that. I want to be explicit.