Code Monkey home page Code Monkey logo

Comments (9)

vadimdemedes avatar vadimdemedes commented on May 21, 2024

Yes, this would be a nice option to have.

I would leave this as an option, because AVA is a tool that enforces writing atomic tests. So, one failing test does not mean that all the other ones will fail too. But as an option, it is going to be useful for sure.

from ava.

joakimbeng avatar joakimbeng commented on May 21, 2024

👍

On my own laptop I usually want the tests to fail fast, but in an CI environment I think it's good to run all tests and get a report of what didn't work.

from ava.

sindresorhus avatar sindresorhus commented on May 21, 2024

What flag name do you prefer? bikeshedding

from ava.

joakimbeng avatar joakimbeng commented on May 21, 2024

I think I prefer --bail as it's in line with other test runners.

from ava.

Qix- avatar Qix- commented on May 21, 2024

fail-fast means more to me as a programmer. I'd have no idea what bail meant.

from ava.

sindresorhus avatar sindresorhus commented on May 21, 2024

I don't really care what other test runners do. AVA exists because of those. I want something succinct as flag name.

from ava.

joakimbeng avatar joakimbeng commented on May 21, 2024

I don't really care what other test runners do

👍 Then I agree with --fail-fast being a better name. Or maybe --abort-on-fail but that's too long to be good...

from ava.

arthurvr avatar arthurvr commented on May 21, 2024

I like fail-fast.

from ava.

kevva avatar kevva commented on May 21, 2024

I'd leave it as an option too, although I'm usually hitting ctrl +c whenever I see a fail test locally if there are time consuming tests (like in pageres). But most of the times, the tests are finished before that.

Also, +1 on fail-fast or something like it that makes it's intention clear. bail has never been that obvious to me.

from ava.

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.