[wp-trac] [WordPress Trac] #50267: Getting code coverage from phpunit?

WordPress Trac noreply at wordpress.org
Wed May 27 19:11:29 UTC 2020


#50267: Getting code coverage from phpunit?
------------------------------+-----------------------------
 Reporter:  mmarco9           |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  minor             |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 I would like to obtain test coverage by using `phpunit`. I am passing the
 parameter `--coverage-text=cov.txt`, however the output tells me of 0%
 code coverage. I am wondering if I am doing something wrong, or if it's
 not possible to obtain code coverage on these tests.
 I appreciate any help!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50267>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list