Re: [rspec-users] Skipping the testscenario based on Given block execution.

2009-05-19 Thread Denis Haskin
This seems like a really bad practice when writing tests, and I'm having trouble imagining a situation where this would be justified. If "sometimes the precondition fails" that means on each test run you won't know whether the test actually ran or not, and thus whether the test succeeds or fai

Re: [rspec-users] Skipping the testscenario based on Given block execution.

2009-05-19 Thread Joseph Wilk
Anil Gollaa wrote: Hi, I think i am not clear. My query is while running the testcases, Some times precondition of testcase fails, when precondition itself fails there is no point in executing the testcase further. so , is there any way in cucumber to skip execution of scenario when preconditio

Re: [rspec-users] Skipping the testscenario based on Given block execution.

2009-05-19 Thread aslak hellesoy
> Hi, > I think i am not clear. > My query is while running the testcases, > Some times precondition of testcase fails, when precondition itself > fails there is no point in executing the testcase further. > so , is there any way in cucumber to skip execution of scenario when > precondition of test

Re: [rspec-users] Skipping the testscenario based on Given block execution.

2009-05-19 Thread Anil Gollaa
Hi, I think i am not clear. My query is while running the testcases, Some times precondition of testcase fails, when precondition itself fails there is no point in executing the testcase further. so , is there any way in cucumber to skip execution of scenario when precondition of testcase fails.

Re: [rspec-users] Skipping the testscenario based on Given block execution.

2009-05-18 Thread Lee Hambley
Anil, Your precondition shouldn't fail? - Lee 2009/5/18 Anil Gollaa > > Hi, > Generally in cucumber, we write the preconditions in GIVEN block, > Is there any way in cucumber using which test scenario execution is > skipped, based on the Given block execution. > Because there is no point in ex

[rspec-users] Skipping the testscenario based on Given block execution.

2009-05-18 Thread Anil Gollaa
Hi, Generally in cucumber, we write the preconditions in GIVEN block, Is there any way in cucumber using which test scenario execution is skipped, based on the Given block execution. Because there is no point in executing the test scenario when precondition itself fails. Please help me in this re