infection: symbolic link trouble + PHPUnit unknown

Question Answer
Infection version 0.13.6
Test Framework version PHPUnit 7.5.15
PHP version 7.3.5
Platform Windows 10 Pro (using ConEmu)
Github Repo https://github.com/ccwebdesign/infection-temp

When run under a symbolic link in a terminal, infection creates all of the mutants, but claims they’re all uncovered by tests.

To reproduce:

  • create a directory with some code, tests, and Infection
  • create a symbolic link to that directory
  • cd into the symbolic link and run tests then infection

Repository above contains samples and structure if you want it.

Infection was run from the test subdirectory with:

..\..\vendor\bin\infection --coverage=tmp -j=4

Separate issue is that the PHPUnit version is unknown, both in the symlink folder and the actual one. (Whether vendor/bin directory is or isn’t in PATH.)

Left out the phpunit.junit.xml for brevity (and since it’s probably not relevant).

Output with issue
You are running Infection with Xdebug enabled.
    ____      ____          __  _
   /  _/___  / __/__  _____/ /_(_)___  ____
   / // __ \/ /_/ _ \/ ___/ __/ / __ \/ __ \
 _/ // / / / __/  __/ /__/ /_/ / /_/ / / / /
/___/_/ /_/_/  \___/\___/\__/_/\____/_/ /_/

   0 [>---------------------------] < 1 secRunning initial test suite...

PHPUnit version: unknown

   1 [============================] < 1 secProcessing source code files:   0/585

Generate mutants...

Processing source code files: 585/585Creating mutated files and processes:    0/6999
Creating mutated files and processes: 6999/6999
...
6999 mutations were generated:
      0 mutants were killed
   6999 mutants were not covered by tests
      0 covered mutants were not detected
      0 errors were encountered
      0 time outs were encountered

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 26 (13 by maintainers)

Most upvoted comments

Happened to be checking back on this to delete the repository. The original issue is resolved (tested in both php 7.3 and 8.0). Thanks, all!