WordPress.org

Make WordPress Core

Opened 2 months ago

#50267 new defect (bug)

Getting code coverage from phpunit?

Reported by: mmarco9 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version:
Component: Build/Test Tools Keywords:
Focuses: Cc:

Description

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!

Attachments (1)

cov.txt (206 bytes) - added by mmarco9 2 months ago.

Download all attachments as: .zip

Change History (1)

@mmarco9
2 months ago

Note: See TracTickets for help on using tickets.