Comments (10)
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.
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.
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.
@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.
This is going to be implemented via #13
from pytest-testmon.
@blueyed Do you want to take a stab on it?
from pytest-testmon.
@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.
what was your workaround @boxed ?
from pytest-testmon.
This was closed because I thought #13 fixes it, sorry.
from pytest-testmon.
Fixed in v 1.3.0.
from pytest-testmon.
Related Issues (20)
- testmon does not respect test order HOT 2
- Ability to run testmon on an installed package HOT 4
- No source package upload to pypi HOT 4
- fails when git is not present HOT 2
- Missing git version tagsπ€ HOT 2
- Changes > 1.4.5 made testmon more sensitive to differently packaged environments? HOT 13
- Have a command line that outputs all the tests which reach a certain line in the code HOT 1
- Change to Importlib introduces AttributeError for {d.name} if d.name does not exist. HOT 2
- Temporary files not being cleared inside a container HOT 6
- testmon.org appears to be down HOT 4
- testmon does not work with --branch based coverage HOT 4
- Change to less restrictive license HOT 8
- Seeking examples of pytest-testmon in GitHub Actions HOT 4
- Allow using --testmon-noselect and --testmon-nocollect simultaneously HOT 3
- Mark test as 'run-always'
- Support pytest 8.0
- Support detecting changes in symlinked files HOT 1
- .testmondata does not get flushed at exit HOT 1
- testmon >=2.0.0 does not work with pytest-xdist HOT 1
- INTERNALERROR> TypeError: '<=' not supported between instances of 'int' and 'NoneType' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-testmon.