-
Notifications
You must be signed in to change notification settings - Fork 15
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
this plugin doesn't work with unittest #38
Conversation
Hope this note will save time the next person considering trying this module with unittests. I spent half hour trying to figure out if I did something wrong.
imho, this precision does not belong to the requirements section. The fact that this is a pytest plugin is explicit in the very first statement of the file. If a emphasis is needed on this point I would
|
Based on your reply, it sounds like you're suggesting that I did something wrong. Yet, I've attempted to use this plugin exactly as prescribed, exactly under prescribed platform which is Could you please clarify how emphasizing that this a pytest plugin will tell users that this is a pytest plugin that doesn't support unittest tests? Please refer to https://docs.pytest.org/en/6.2.x/unittest.html, where it clearly says that
So perhaps to follow suite, the requirement of this plugin could say:
Or perhaps another variation of an additional requirement entry:
I'm totally not attached to the wording, just asking that you fairly warn the potential users that Thank you! |
Hello I was not aware of this pytest feature (pretty neat imho). I think the better for now is:
|
+1. But I would do it in the feature section of the README
+1 |
I trust that you will know the best where and how to document that now that you know about this pytest-almost-unittest-100%-supported nuance ;)
I'm trying to identify a possible memory leak in some 5K test-suite, that's how I stumbled upon your creation. Meanwhile I'm trying this approach to scope out the memory usage:
but I didn't have enough time yet to sort it out. Measuring linux memory usage is tricky. And we can't use |
pytest does lots (too much ?) things! Hard to be know each features :) You are absolutely right with memory measures. I'll try to find some time this week to check if I can identify the sequence involved for this use case. |
Kudos, SonarCloud Quality Gate passed! |
As requested opened an Issue: #39 |
Would it be beneficial to discuss the nuances / exchange notes in another Issue? For example a few possible things to discuss:
Amazing - thank you! |
I am sure that all these details would make more sense in a separate issue. Thanks for that :) Few notes on your remarks:
I merge the PR. |
Hope this note will save time the next person considering trying this module with unittests. I spent half hour trying to figure out if I did something wrong.