The moodle-plugin-ci project now has support to generate code coverage, please see Generating code coverage to see how. It requires that you have at least one build on PHP7. If you don't have that, don't worry, there is another document just for that: Testing a plugin against PHP7.
Cheers and happy testing!