sebastianbergmann / phpcov

TextUI frontend for php-code-coverage
BSD 3-Clause "New" or "Revised" License
223 stars 58 forks source link

Verify coverage #50

Closed seggen-ibuildings closed 5 years ago

seggen-ibuildings commented 8 years ago

I had an idea, how about adding a command that verifies code coverage? You could read an .cov file, extract the coverage percentage, compare it to a given target and then exit with either 0 or 1.

If I had the time I'd build it myself :) Maybe on the AmsterdamPHP/DPC Codenight next month...

sebastianbergmann commented 8 years ago

Not going to add this as this should be done through a continuous integration server.

seggen-ibuildings commented 8 years ago

That was my initial thought as well, but this is different for Yenkins and Bamboo, and I'm not even sure how to do it in Travis. (If you use Travis, you apparently want to use some SaaS for code coverage reporting as well.)

And on top of that, what if you want to test-run the CI build on your checkout?

Anyway, I wouldn't mind writing it myself, but I gather that you think it I should write it as a different tool. Am I right?

sebastianbergmann commented 8 years ago

Feel free to send a pull request.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

This issue has been automatically closed because it has not had activity since it was marked as stale. Thank you for your contributions.