Code Monkey home page Code Monkey logo

behave-teamcity's People

Contributors

alrusdi avatar fulder avatar iljabauer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

behave-teamcity's Issues

Scenario rather than step error message is not returning the correct error

Hi,

I've been using behave-teamcity and have encountered an issue when an error occurs in a step that is not the last step of the behave feature file.

To correct it, I've locally changed line 53 from:

  • error_details = self.current_step.error_message
    to:
  • error_details = step_result.error_message

Example Feature fie:

  1. Given I create an API request
  2. When I get the request
  3. Then the http status should be 200

If my error occurred on lines 1 or 2 of my feature file (in the example above), then the step failed teamcity message would not contain the details section, but it did contain the message section, which tells you which step has failed but not why it has failed.

When I changed line 53, as I mentioned above, I did then see the relevant exception I had generated when these occurred in lines 1 or 2 in my feature file.

Thanks,
Jim

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.