Skip to content
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

Add profile option to pytest. #1991

Merged
merged 1 commit into from
Feb 10, 2024
Merged

Add profile option to pytest. #1991

merged 1 commit into from
Feb 10, 2024

Conversation

janiversen
Copy link
Collaborator

add pytest-profiling to the pytest plugins, to allow for easy profiling

Add “durations=10” to pytest options, to show the 10 slowest tests in every run

Now its possible to run:
pytest —cov
generates a coverage report in build/html
pytest —profile
generates prof files in prof. These can be handled by pstats

@janiversen janiversen merged commit 0dcc7b6 into dev Feb 10, 2024
1 check passed
@janiversen janiversen deleted the profiler branch February 10, 2024 10:48
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant