After a step fails, if successive steps have been executed and passed, cucumber reports them as skip


#1

Hi,

I have a Given step that fails: For that Scenario the remaining
Given’s, When, and Then’s are reported as being skipped, even though
theses steps have been executed.

Why I am not submitting this to Lighthouse, is that I believe, this
may be intentional design.

However, would it not be more indicative to have these steps “pass”
for example, if the successive steps have executed and passed?

Aidy


#2

On Thu, Oct 30, 2008 at 12:02 PM, aidy lewis removed_email_address@domain.invalid
wrote:

for example, if the successive steps have executed and passed?
This is absolutely by design. If a step passes or fails after another
has failed, you have no way of knowing if it would still pass or fail
once the other one is passing. Cucumber reports the first problem in a
scenario so you can fix that one and move on.

Cheers,
David


#3

On Thu, Oct 30, 2008 at 12:07 PM, David C. removed_email_address@domain.invalid
wrote:

This is absolutely by design. If a step passes or fails after another
has failed, you have no way of knowing if it would still pass or fail
once the other one is passing. Cucumber reports the first problem in a
scenario so you can fix that one and move on.

I’m curious: what’s the logic behind it not just stopping there?


Have Fun,
Steve E. (removed_email_address@domain.invalid)
ESCAPE POD - The Science Fiction Podcast Magazine
http://www.escapepod.org


#4

On Thu, Oct 30, 2008 at 2:18 PM, Stephen E. removed_email_address@domain.invalid wrote:

On Thu, Oct 30, 2008 at 12:07 PM, David C. removed_email_address@domain.invalid wrote:

This is absolutely by design. If a step passes or fails after another
has failed, you have no way of knowing if it would still pass or fail
once the other one is passing. Cucumber reports the first problem in a
scenario so you can fix that one and move on.

I’m curious: what’s the logic behind it not just stopping there?

Pending steps (post failure) are still reported as pending, so it
gives you a sense of where you are in process. Make sense?