Comment #10 on issue 174 by bryan.oakley: Possibility to stop test
execution with PASS status
http://code.google.com/p/robotframework/issues/detail?id=174
here's our use case:
We have a whole suite of tests that test application features A, B, ... Z.
Our
website can be configured in different ways for different markets, and each
market
has a unique configuration of features controlled by a config file. So, one
config
might enable A and B, but disable C and Z.
During development a developer or tester may want to run the test suite,
tweak the
configuration, run the test suite, tweak the configuration, ... But,
there's no need
to run all the tests (and get all the failures) for features that aren't
enabled. It
would be nice if each test suite could determine whether it should run or
not, and be
skipped if the features for that suite are not enabled.
So, we want to have a test that looks something like this:
skip if features are disabled | A | B | C
${result}= | use feature A | foo | bar
Should be equal | ${result} | whatever
${result}= | use feature B | foo | bar
Should be equal | ${result} | whatever
...
The "skip if features are disabled" could be designed to look in a config
file at
runtime and determine whether features A, B and C are enabled. If any are
disabled,
the test can be skipped.