.coveragerc
文件中include
和omit
的顺序是“先包含,然后排除”:
If both include and omit are specified, first the set of files is reduced to only those that match the include patterns, then any files that match the omit pattern are removed from the set.
https://coverage.readthedocs.io/en/v4.5.x/source.html#execution
但我需要排除文件夹与许多文件,除了一些我想覆盖
当然,我可以扩展排除来显式列出所有文件,但这看起来很愚蠢,很难维护
是否可以在配置文件中指定“省略,除了…”
目前没有回答
相关问题 更多 >
编程相关推荐