Giter VIP home page Giter VIP logo

Comments (11)

lunmag avatar lunmag commented on June 9, 2024 1

Hi!
Thanks for quick handling!
Added .txt to JSON (It contains an image too, but should be ok)

Console-Out.txt
cucumber.json.txt

from cluecumber.

mpkorstanje avatar mpkorstanje commented on June 9, 2024 1

@bischoffdev the state of a scenario is the most severe status of it's steps. But I didn't look at the json, maybe I'm reading your comment wrong.

https://github.com/cucumber/cucumber-jvm/blob/main/cucumber-core/src/main/java/io/cucumber/core/runner/TestCaseState.java#L54

from cluecumber.

lunmag avatar lunmag commented on June 9, 2024 1

I just tried Allure-reporting and got this for an Assume()/Abort() operation:
(w/o any claims of what is wrong or right, just as info)

image

from cluecumber.

bischoffdev avatar bischoffdev commented on June 9, 2024

Thank you for reporting, I will look into this.

from cluecumber.

bischoffdev avatar bischoffdev commented on June 9, 2024

A scenario is considered skipped when all steps are skipped. When there are passing steps before it is considered passed. This is according to the official Cucumber guidelines.

(see issue #283)

Could you send me the JSON result file of your use case so I can check this better?

from cluecumber.

bischoffdev avatar bischoffdev commented on June 9, 2024

Your example shows a passed step and then a skipped one. According to the Cucumber specs, this is considered passed.

from cluecumber.

bischoffdev avatar bischoffdev commented on June 9, 2024

Also the step counts seem to be correct here.

from cluecumber.

bischoffdev avatar bischoffdev commented on June 9, 2024

@mpkorstanje this is interesting. What does "the most severe" status mean concretely?

I know the status constants are

PASSED,
SKIPPED,
PENDING,
UNDEFINED,
AMBIGUOUS,
FAILED,
UNUSED

Would that mean that any step status that is lower down the list than any other steps in the scenario determines the scenario status? If so, this is new info. I remember getting my initial info from the Cucumber Slack.

E.g.

Step 1: passed
Step 2: skipped
Step 3: skipped

=> Scenario is skipped?

According to my former info, this would be considered passed.

from cluecumber.

mpkorstanje avatar mpkorstanje commented on June 9, 2024

Yes, this specific example the scenario would be skipped.

Not sure what you got from Slack. I do remember this conversation:

https://cucumberbdd.slack.com/archives/C60TKS3SL/p1532961939000185?thread_ts=1532961939.000185&cid=C60TKS3SL

I think you interpreted the comment about scenario no. 3 as me saying the scenario passed. Rather the scenario is skipped, the execution of cucumber is passed (i.e. a zero exit code if this was the only scenario executed).

It is worth nothing that strict mode is default now and non-strict has been removed. So things are much simpler now.

from cluecumber.

bischoffdev avatar bischoffdev commented on June 9, 2024

Ah cool! So I will refine the state handling again and adjust it to the official way. Thanks for your input!

from cluecumber.

bischoffdev avatar bischoffdev commented on June 9, 2024

Ready to release in v3.3.0

from cluecumber.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.