Hey,

Uh, what does test coverage on tests/ directory even mean?  Who
> <s>watches the watchers</s> tests the tests?
>

Good point. Non-production code typically ought to be excluded. This is
pretty simple to do with some PHPUnit config:

https://github.com/wikimedia/mediawiki-extensions-Diff/blob/master/phpunit.xml.dist

The relevant section there is "filter". This makes sure only the files in
the "src" directory get held into account for the coverage report. This
config also makes sure that all such files get held into account, and
prevents the ones with no coverage at all from being omitted (which is the
default behavior).

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil. ~=[,,_,,]:3
--
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to