Git Product home page Git Product logo

Comments (9)

sindresorhus avatar sindresorhus commented on June 2, 2024 1

Actually, avajs/ava#673 might make this discussion moot, as I would rather use it than a skip test.

from eslint-plugin-ava.

sindresorhus avatar sindresorhus commented on June 2, 2024 1

Ok, let's defer this discussion until after avajs/ava#673 is resolved.

from eslint-plugin-ava.

SamVerschueren avatar SamVerschueren commented on June 2, 2024

I'm 👍 on warning. I feel skip is a little bit the same as a TODO comment. Eventually you want them out, but they can be darn handy to not forget something in the future.

from eslint-plugin-ava.

jamestalmage avatar jamestalmage commented on June 2, 2024

👍

from eslint-plugin-ava.

jfmengels avatar jfmengels commented on June 2, 2024

👎

In my day job, my colleagues and I often use .skip and only to temporarily run tests only on what we want to fix/add. At the end of the day, we remove them, commit and push. But we had to add additional tools (we use Mocha for most projects) to abort the push if they remained somewhere because we often forgot to remove them.

We're used to: "If it passes all tests, it's all good", and warnings would be ignored in the buttload of text generated by all the different test phases. I have the same mentality when developing modules (though there is a lot less text, so I could maybe see it in the console). Also: a CI wouldn't catch those, and then who knows how long it would take before someone notices it.

I don't mind re-enforcing it in my projects, but to me, it makes sense to keep it as an error in quite some cases.

from eslint-plugin-ava.

SamVerschueren avatar SamVerschueren commented on June 2, 2024

You can always overwrite it in the config rules. It's more about "what's the best default for this rule".

from eslint-plugin-ava.

jfmengels avatar jfmengels commented on June 2, 2024

You can always overwrite it in the config rules. It's more about "what's the best default for this rule".

I agree, but I think that allowing omitted tests is a rarer case than not allowing omitted tests. If it's an error, it can be a life-saver at best, a nuisance at worst?

from eslint-plugin-ava.

jamestalmage avatar jamestalmage commented on June 2, 2024

#673 is a good alternative to this.

from eslint-plugin-ava.

novemberborn avatar novemberborn commented on June 2, 2024

I guess it depends whether you lint before or after running tests. If before then it should be configured to be a warning, else you can't run your tests to begin with.

from eslint-plugin-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.