zopefoundation / zope.testrunner

This package provides a flexible test runner with layer support.
https://zopetestrunner.readthedocs.io/
Other
2 stars 23 forks source link

Fix XML tests when running in distribution resp. separately. #164

Closed icemac closed 9 months ago

icemac commented 9 months ago

Fixes #163

The problem was that the doctest report files have different names when running only a single test: they contain a path in the tmp directory. So I chose a unittest.

Additionally I refactored the test setup to use pathlib all over the place and to store the results in a temporary directory to prevent problems when running tests in parallel.

icemac commented 9 months ago

Thank you for reviewing this PR. 😃