Skip to content

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
@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.

2 participants