Hi All,

I have a case where I want certain steps to be run only if I'm in
my development environment where the data is a known quantity.  If the data
is a known quantity then I can assert things like: Then the first result is
X.  If I'm running tests for the purpose of debugging against a production
like environment where the data is unknown I would assert things like: Then
there is at least one result.

I can see there is an @ignore Meta Info attribute, but this applies to
whole Scenarios or Stories rather than a single Step.  In Junit proper
there is an Assume.assumeTrue() method which will ignore tests with failing
assumptions but this hasn't worked with JBehave for me.  I suppose I could
duplicate the story file and change the Then conditions but that doesn't
seem very elegant.  Any ideas?

Thanks,
Tricia

Reply via email to