Skip to content

Understanding the effect of --covers #6473

@theofidry

Description

@theofidry

Full context in infection/infection#2848.

Scenario:

  • we have some source code
  • we have some tests
  • we execute:
vendor/bin/phpunit --covers='<value>' --list-tests

Is the following the expected result?

  • For <value>=SourceFQCN: it lists only the tests covering SourceFQCN.
  • For <value>=FilePathToSrc: it will list no tests
  • Is the above the expected behaviour for PHPUnit from the latest down to 9.x?
  • If there is a difference, for which versions of PHPUnit are you willing to fix it (if any)

Based on your answer I'll double check the results and come up with reproducer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions