You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add "phpunit.args": ["--no-coverage"] to settings.json
Run a test using the extension twice
Outcome
The --no-coverage is appended to the run command an extra time with each run. (5 runs adds --no-coverage 5 times) 1) Option --no-coverage cannot be used more than once warning message
…
* Executing task: '/Users/zjbarg/code/foo-project/vendor/bin/phpunit' --colors=always --filter 'SomeTest' --no-coverage --no-coverage --no-coverage '/Users/zjbarg/code/foo-project/tests/some-directory/SomeTest.php'
PHPUnit 11.2.8 by Sebastian Bergmann and contributors.
Runtime: PHP 8.3.6
Configuration: /Users/zjbarg/code/foo-project/phpunit.xml
. 1 / 1 (100%)
Time: 00:00.002, Memory: 8.00 MB
There was 1 PHPUnit test runner warning:
1) Option --no-coverage cannot be used more than once
WARNINGS!
Tests: 1, Assertions: 1, Warnings: 1.
* The terminal process "/bin/zsh '-l', '-c', ''/Users/zjbarg/code/foo-project/vendor/bin/phpunit' --colors=always --filter 'SomeTest' --no-coverage --no-coverage --no-coverage '/Users/zjbarg/code/foo-project/tests/some-directory/SomeTest.php''" failed to launch (exit code: 1).
* Terminal will be reused by tasks, press any key to close it.
Environment
Values
Extension version
v4.16.1
Operating system
macOS
The text was updated successfully, but these errors were encountered:
Repro
"phpunit.args": ["--no-coverage"]
tosettings.json
Outcome
The
--no-coverage
is appended to the run command an extra time with each run. (5 runs adds--no-coverage
5 times)1) Option --no-coverage cannot be used more than once
warning message…
Expected outcome
Not to append the same arg multiple times.
Logs / output / settings
Settings.json
phpunit.xml
Terminal
The text was updated successfully, but these errors were encountered: