[TIP] are the absolute paths in .coverage necessary?
ben+python at benfinney.id.au
Sun Oct 16 18:51:26 PDT 2016
Ned Batchelder <ned at nedbatchelder.com> writes:
> There's no guarantee that all of the paths make sense as relative to
> the current directory, since they might not be below the current
What may not be clear from that, but I think is intailed in what Ned
The *collection* of the coverage information is done at a different time
from other actions, such as collecting more, or reporting coverage.
Also, the coverage data can be stored in a location distant from the
So there is no reliable context for *which* working directory was active
when the coverage data was collected; and so, for the data to refer to
the same paths later, those paths must be absolute.
\ “Don't be misled by the enormous flow of money into bad defacto |
`\ standards for unsophisticated buyers using poor adaptations of |
_o__) incomplete ideas.” —Alan Kay |
More information about the testing-in-python