Recently I’ve been working to reduce the Travis CI build times of not only WordPress core, but also the WordPress plugins and projects that I maintain. The following patterns and tips will help you speed up your build times. Comments welcome!
Tag archives: Testing
Misleading Code Coverage Reports for Switch Statements
I was recently investigating the code coverage of the map_meta_cap() function in WordPress’ core unit test suite — particularly the large switch statement contained within the function. I was surprised to see that the coverage was higher than I was expecting, because I know for a fact that several meta capabilities aren’t tested. It turns out …
Continue reading “Misleading Code Coverage Reports for Switch Statements”