-
Notifications
You must be signed in to change notification settings - Fork 226
Closed
Description
For some reason, I'm seeing a significant slowdown when using pytest-cov. The following test runs were literally one right after another.
FWIW, I'm running these in a docker-compose environment on docker for mac.
with coverage:
# py.test tests/ --durations=100 --junitxml=/tmp/xunit.xml --cov my_module --cov-report term-missing
=== test session starts ===
platform linux2 -- Python 2.7.13, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
Django settings: settings_override (from environment variable)
rootdir: /my/path, inifile:
plugins: xdist-1.16.0, mock-1.6.0, django-3.1.2, cov-2.5.1
collected 888 items
<snip>
=== slowest 100 test durations ===
18.87s setup ...
3.43s call ...
3.20s call ...
2.43s call ...
<snip>
=== 870 passed, 17 skipped, 1 xfailed in 271.88 seconds ====without coverage:
# py.test tests/ --durations=100 --junitxml=/tmp/xunit.xml
==== test session starts ===
platform linux2 -- Python 2.7.13, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
Django settings: settings_override (from environment variable)
rootdir: /opt/sps/identity-service, inifile:
plugins: xdist-1.16.0, mock-1.6.0, django-3.1.2, cov-2.5.1
collected 888 items
<snip>
=== slowest 100 test durations ===
7.69s setup ...
1.17s teardown ...
0.32s call ...
0.30s call ...
<snip>
=== 870 passed, 17 skipped, 1 xfailed in 58.74 seconds ===Ideas on how to debug this?
Metadata
Metadata
Assignees
Labels
No labels