Code Monkey home page Code Monkey logo

Comments (6)

mlvandijk avatar mlvandijk commented on July 22, 2024

Hello ssneha345 and welcome!
For questions please one of the support options.
GitHub issues are used to report bugs or request features.

from cucumber-java-skeleton.

mlvandijk avatar mlvandijk commented on July 22, 2024

From the example provided, you have an interesting way of running Cucumber.
Common usage would be to run Cucumber from the command line, using class Main and providing the options as arguments.
Could you explain why you would only want to see the error only after the run? If your driver initialization fails (as per your example), wouldn't you want your test to fail right away?

from cucumber-java-skeleton.

ssneha345 avatar ssneha345 commented on July 22, 2024

you are right..if there is some error say for driver initialization test should fail right away..which is happening..but i also want to know why the test fail , may be with the help of some exception thrown or just like in junit.result we have result.getFailures(), via which we can know the failure and its reason.

from cucumber-java-skeleton.

ssneha345 avatar ssneha345 commented on July 22, 2024

if i can get the exception thrown from the cucumber code in the @after method of hooks. i think that will also satisfy my need.

from cucumber-java-skeleton.

mlvandijk avatar mlvandijk commented on July 22, 2024

@ssneha345 Ok, do I understand correctly that you want to know why it failed?
Afaik I get a stack trace in my console when running tests locally and they fail. I'm running my test from a JUnit runner (like the RunCukesTest in this example project). Could you give that a try, please?

from cucumber-java-skeleton.

aslakhellesoy avatar aslakhellesoy commented on July 22, 2024

I'm closing this since it's a question and not a bug report or feature request.

from cucumber-java-skeleton.

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.