Closed Joonalai closed 1 year ago
Patch coverage: 66.66
% and project coverage change: -0.02
:warning:
Comparison is base (
bc9adc6
) 54.68% compared to head (86dec5c
) 54.66%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
When using pytest-qgis with pytest-xdist plugin on Windows, the following errors occur:
This is caused by creating temporary path for QGIS using pytest's internal
TempPathFactory
, which is not ment to be used by the plugins or in hooks...This PR suggests a change to use
tempfile
module instead ofTempPathFactory
in QGIS config path creation. This is to allow using pytest-xdist plugin to run tests in parallel. In addition plugin pytest-rerunfailures can be used to rerun tests failing randomly with segmentation faults.This PR also adds a mention about importing modules in conftest to resolve #35.