Skip to content

HTTP tests are not included in test coverage by pcov #657

Closed
@salvisb

Description

Sail Version

1.21.2

Laravel Version

10.40.0

PHP Version

8.2.5

Operating System

macOS

OS Version

14.1.1

Description

Hi, we have several HTTP tests for checking controller logic. However, when running sail artisan test --coverage all of the controller classes has 0% coverage. Unit tests are showing up just fine. Could it be that unlike xdebug, pcov is not capable of measuring coverage of the HTTP tests? Or it's somehow configurable? Thanks!

Steps To Reproduce

  • Create a controller
  • Create a test for the controller
  • Run sail artisan test --coverage
  • Check the coverage report

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions