PMF,
I'm not sure if I followed the question completely, so straighten me out if I'm
off...
My first thought here would be to simply use the assertion to set a flag, and
drive your others tests off of that flag by wrapping the body of the test in a
simple if statement.
A cleaner way to do this, though, would be with method calls like this:
class SampleTests < Test::Unit::TestCase
def test_mytest1
if assert(Something)
whentrue
else
whenfalse
end
end
def whentrue
#do stuff when the assertion passes
end
def whenfalse
#do stuff when the assertion fails
end
end
If the method name isn't preceded with "test", then it won't automatically be
run and instead will need to be called. This should give you the flexibility
you're looking for.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5563&messageID=15498#15498
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general