Git Product home page Git Product logo

Comments (10)

boxed avatar boxed commented on August 14, 2024 2

Why is this ticket closed? I just now was hit by this and had to make a workaround... Have I done something wrong or do I need to do something different?

from pytest-testmon.

boxed avatar boxed commented on August 14, 2024 1

My workaround was to make my program explicitly know about this exit code and treat it as zero if testmon is in use.

from pytest-testmon.

tarpas avatar tarpas commented on August 14, 2024

Yeah, I understand the use case. This would idally by done by storing the
results from previous run and returning a union of stored and new test
results (the proper exit code would be produced automatically)

On Wed, Dec 16, 2015 at 9:15 PM, Daniel Hahler [email protected]
wrote:

py.test will exit with code 5 in case no tests were ran (
pytest-dev/pytest#812 pytest-dev/pytest#812, pytest-dev/pytest#500
(comment)
pytest-dev/pytest#500 (comment)).

I can see that this is useful in general, but with pytest-testmon this
should not be an error.

Would it be possible and is it sensible to override pytest's exit code to
be 0 in that case then?

My use case it using pytest-watch and its --onfail feature, which should
not be triggered because testmon made py.test skip all tests.

β€”
Reply to this email directly or view it on GitHub
#31.

from pytest-testmon.

blueyed avatar blueyed commented on August 14, 2024

@tarpas
Any update on this?
Can you provide more hints to fix this?

While pytest-watch has a patch by now that handles it, it's still an issue when running py.test --testmon with other tools.

from pytest-testmon.

tarpas avatar tarpas commented on August 14, 2024

This is going to be implemented via #13

from pytest-testmon.

tarpas avatar tarpas commented on August 14, 2024

@blueyed Do you want to take a stab on it?

from pytest-testmon.

blueyed avatar blueyed commented on August 14, 2024

@tarpas
Thanks for the offer and notification, but that's too much for me currently.
Maybe that would be a good topic for the pytest sprint!?
Also the whole topic of making this a first-class pytest plugin.
Are you coming?

from pytest-testmon.

automaticgiant avatar automaticgiant commented on August 14, 2024

what was your workaround @boxed ?

from pytest-testmon.

tarpas avatar tarpas commented on August 14, 2024

This was closed because I thought #13 fixes it, sorry.

from pytest-testmon.

tarpas avatar tarpas commented on August 14, 2024

Fixed in v 1.3.0.

from pytest-testmon.

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.