Code Monkey home page Code Monkey logo

Comments (4)

joeyespo avatar joeyespo commented on July 24, 2024

Hi, @muraveill!

At a glance, this looks like a bug. I'll take a deeper look at this later to see what's going on.

For now, try passing those args directly to py.test:

$ ptw -- --ignore ./tests_functional

(Note the extra --. Also the ./tests argument shouldn't be necessary.)

from pytest-watch.

joeyespo avatar joeyespo commented on July 24, 2024

Ok, so it turns out this worked as implemented. But since the CLI is misleading about what --ignore does, and that running ptw --ignore tests_functional -- --ignore tests_functional is way too verbose, I'm looking into improving this.

In the next release, you should be able to do what you did an expect it to ignore tests_functional in both the pytest-watch observer and in py.test.

Thanks for pointing out this awkward design!

from pytest-watch.

joeyespo avatar joeyespo commented on July 24, 2024

Just published v4.0, which forwards all --ignore arguments to pytest (6f3eb56).

After running pip install --upgrade pytest-watch, you should be able to run

$ ptw --ignore ./tests_functional

and have it work as expected (ptw doesn't watch that directory and pytest doesn't collect tests from it either). Thanks again!

from pytest-watch.

jdelafon avatar jdelafon commented on July 24, 2024

It works perfectly now, thanks!

from pytest-watch.

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.