recca0120/vscode-phpunit

Relative Path does not work with tests in subfolders

Closed this issue · 1 comments

Setup:

  • docker
  • Source in folder /webapp/src
  • Tests in folder /tests/**/*Test.php
  • inside the container the Source is in /app (/webapp/src == /app)

if I start a test:
[2021-09-24 11:49:12.358] [INFO] {
title: 'PHPUnit LSP',
command: '\docker-compose exec -u root webserver php',
arguments: [
'\app\vendor\bin\phpunit',
'--filter',
'"/^.::categories_can_be_retrieved.$/"',
'webapp\src\tests\Feature\CategoryTest.php'
]
}

You see the functions calls the path webapp\src\tests\Feature\CategoryTest.php witch does not exists within the container.

Can you help me?

try version 3.0