Skip to content

Make resolving of workspaceFolder consistent#413

Merged
recca0120 merged 1 commit into
recca0120:mainfrom
rserry:main
Apr 2, 2026
Merged

Make resolving of workspaceFolder consistent#413
recca0120 merged 1 commit into
recca0120:mainfrom
rserry:main

Conversation

@rserry
Copy link
Copy Markdown
Contributor

@rserry rserry commented Apr 2, 2026

@recca0120 can you check if this is correct?

The issue I have is that with this config:

{
    "phpunit.phpunit": "${workspaceFolder}/apps/api/vendor/bin/phpunit",
    "phpunit.args": [
        "--configuration",
        "${workspaceFolder}/apps/api/phpunit.xml.dist",
    ]
}

The ${workspaceFolder} is resolved to the root of the project when discovering tests, but to apps/api when running an actual test.

- Updated ProcessBuilderFactory to inject WorkspaceFolder.
- Modified PathReplacer to utilize workspaceFolder for variable replacement.
- Added tests to verify behavior when workspaceFolder differs from cwd in nested configurations.
@rserry rserry changed the title Make resolving of workspaceFolder consisten Make resolving of workspaceFolder consistent Apr 2, 2026
@recca0120 recca0120 merged commit d2ca6d3 into recca0120:main Apr 2, 2026
12 checks passed
recca0120 added a commit that referenced this pull request Apr 2, 2026
- Fix: PathReplacer resolves ${workspaceFolder} to workspace root, not cwd (#413)
- Fix: rename misleading fallback test for duplicated path segments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants