GithubHelp home page GithubHelp logo

On a test fail a ctual exit status of the godog run is zero, although it outputs "exit status 1" as the last line of the log about godog HOT 5 CLOSED

cucumber avatar cucumber commented on June 28, 2024
On a test fail a ctual exit status of the godog run is zero, although it outputs "exit status 1" as the last line of the log

from godog.

Comments (5)

l3pp4rd avatar l3pp4rd commented on June 28, 2024

hm, which OS are you running it with? I tested this behavior on linux, seemed OK. the point is that I use a common implementation to capture exit status, but it uses the syscall, which might not work for other oses.. if that would not be complicated, could you try to play with few lines of source code ?

from godog.

l3pp4rd avatar l3pp4rd commented on June 28, 2024

maybe it does not determine an error as exit error, could you try changing status to 1

from godog.

l3pp4rd avatar l3pp4rd commented on June 28, 2024

or to parse it from output, change line to fmt.Fprintln(stderr, string(details)) would be helpful if you try these

from godog.

anton-107 avatar anton-107 commented on June 28, 2024

Sorry for this ticket, it seems like i was on the old version of godog (i was going through a quite complex setup due to my app using vendoring).

After the proper update of the godog and putting my steps definitions to a "_test.go" (looks like this wasn't required in 0.2.0) it works as expected.

from godog.

l3pp4rd avatar l3pp4rd commented on June 28, 2024

OK, good to know. concerning the setup, sadly using gb with godog requires custom setup. maybe in the future I'll have a look how this could be simplified.

from godog.

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.