-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing metrics for failed tests #65
Comments
Same issue here. |
Hello Thanks for submitting. Failed tests are filtered out on purpose (primarily designed that way to get consistent metrics). I think it may be time for that improvement. Now the question game:
|
@js-dieu It's useful because I expect to use this to test for memory leaks. To answer your questions
|
I'd also like to see the results of failed tests in the database by default. @js-dieu If you can point me to where changes are needed to accomplish that and if its not too much of implementation effort, my employer allows me to implement this kind of stuff during my work time. |
Hi @Veritogen / @Diego-Hernandez-Moodys Sorry for the long delay. I have reworked the plugin a bit to be able to support this feature without having everything break. |
@js-dieu awesome, thats great to hear. Let me know if there's something you could need help with. |
Is there any progress on that? The feature would be quite handy. |
As the discussion froze and @js-dieu seems to be busy, I decided to do my own changes locally. I'm gonna summarize my insights below so in case this feature will be implemented in the future.
Of course I would be open to make a PR if you want, but I'm not sure if I did it the way it was intended by you. |
For anyone interested in using this feature: As long as it hasn't been merged upstream yet, there is a soft fork available here: https://github.com/einhundert/pytest-monitor/ (We are only providing support for features and changes made by us, don't request anything not related to these) |
Describe the bug
Monitoring results for failed tests are missing from
.pymon
.To Reproduce
pytest test.py
.pymon
has only 1 entry fortest_1
inTEST_METRICS
table.Expected behavior
Unless I missed something in the documentation, I expect metrics to be reported for failed tests as well.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: