-
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
Write monitor-output of tests to console #46
Comments
Hello Thanks for the proposition! Indeed, extracting data is a pain ....
Point number 1 can be addressed through the monitor-server-api (see https://github.com/CFMTech/monitor-server-api.git) However, point 2 needs a development. Should we propose a report with top consumers on a given resource or just dumps the output ? I believe a full report in someone's terminal is not a good idea... but we can definitely report for a given number of test given an axis (cpu, memory or time) |
Thanks for the pointer to About the metrics summary, yes, this is tricky... One thought, though: the main advantage why I would rather use pytest-monitor instead of pytest-benchmark is that is reports across multiple dimensions - so having a summary-output of only one dimension (cpu/memory/time) defeats its main advantage. |
Got your point 👍🏻 |
Would something along the lines of |
I've made a little proof-of-concept: |
Hello @joukewitteveen Thanks for the PoC. You are not the first one requesting this output. I was lacking time lately, but I'll make the implementation next week. I've seen the code you propose, I'll surely inspire myself from this. Thanks for that! 👍🏻 |
An item setup from markers is now computed by the `PyTestMonitorMarkerProcessor` which build a `PyTestMonitorItemConfig` in turned stashed at the item level.
The pytest_configure hook now uses the `PyTestMonitorMarkerProcessor` to iterate over all known markers in order to generate the documentation.
Is your feature request related to a problem? Please describe.
Inspecting the database after every test-run to get the output of pytest-monitor seems to be quite a hassle.
Describe the solution you'd like
Looking at pytest-benchmark, they write a summary of the output to the console, see screenshot below.
Describe alternatives you've considered
None.
Additional context
None.
The text was updated successfully, but these errors were encountered: