coverage icon indicating copy to clipboard operation
coverage copied to clipboard

Ignore files from coverage by path pattern

Open shouichi opened this issue 5 years ago • 6 comments

Currently, // coverage:ignore-file is available for ignoring the whole file from coverage but some tools (such as built_value_generator) do not generate files with that meta-comment. It would be nice if we can ignore generated files from coverage by specifying something like --exclude *.g.dart. We could fix tools to add the meta-comment but it may make more sense to let developers choose whether to exclude generated files from coverage or not. Thank you.

shouichi avatar Sep 28 '20 08:09 shouichi