pymodbus-dev / pymodbus

A full modbus protocol written in python
Other
2.26k stars 922 forks source link

Add profile option to pytest. #1991

Closed janiversen closed 7 months ago

janiversen commented 7 months ago

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