[TIP] [coverage] Why is --source=. not the default?
Ned Batchelder
ned at nedbatchelder.com
Mon Jan 16 15:43:39 PST 2023
Christian,
You make a good point. It might be that the time has come to change the
default to "--source=." But I also know that these kinds of changes
lead to unintended consequences, and people being surprised by changed
defaults, so I am hesitant :)
--Ned.
On 1/14/23 3:32 PM, c.buhtz at posteo.jp wrote:
> Hi,
>
> at a beginner with using coverage I wondered a lot about the huge
> output and if I maybe misunderstood the intention of coverage. Because
> it also checks the coverage of 3rd-party external packages that don't
> belong to the project folder I'm currently in.
> I sidenote on the docs tell me about "--source=.". Then the output
> looks nice and meaningful to me.
>
> Why isn't that default behaviour of coverage?
>
> Why would someone see the coverage of external packages?
>
> IMHO the source folder is very easy to discover for coverage by itself
> with reading the pyproject.toml/setup.cfg or asking the package
> metadata itself.
>
> Kind
> Christian
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python
>
More information about the testing-in-python
mailing list