[Wtr-general] Skipping Tests
Phlip
phlip2005 at gmail.com
Fri Dec 1 09:49:05 EST 2006
Fletch wrote:
> I have been looking at using WATIR over the past couple of days, and have
> designed a couple of tests, however, in certain tests, if an assertion is
> not true, then I want to jump to another point in my script.
>
> Is this possible?
Just say if instead of assert.
However, terms like "jump", "skipping tests", and "assertion is not true"
make us wonder if your tests are narrow, encapsulated, robust, and isolated.
If your tests are run-on, if they walk the program thru many of its states,
then your tests are not helping to decouple your code.
Are most of your tests on the layer under the GUI?
--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
More information about the Wtr-general
mailing list