Hi,
Opening the Testing tab doesn't show any tests.
No error in output > PHP:
PHP Tools extension started.
Found PHP, version: 7.4.3, Xdebug: 2.9.2.
Info: 'dotnet' runtime is missing.
PHP language server started.
No error in console log
Have a phpunit.xml.dist at workspace's root:
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.5/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="tests/bootstrap.php"
>
<php>
<ini name="error_reporting" value="-1" />
<server name="APP_ENV" value="test" force="true" />
<server name="SHELL_VERBOSITY" value="-1" />
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
</php>
<testsuites>
<testsuite name="Project Test Suite">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
<exclude>
<directory>./src/DataFixtures</directory>
<file>./src/Kernel.php</file>
</exclude>
</whitelist>
</filter>
<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>
</phpunit>
Running php -d display_errors=on PHPUnit.phar --teamcity in terminal from workspace's root does run tests with expected result
Tests: 4860, Assertions: 12940, Errors: 6, Failures: 2.
php --version returns:
PHP 7.4.3 (cli) (built: Oct 6 2020 15:47:56) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
with Xdebug v2.9.2, Copyright (c) 2002-2020, by Derick Rethans
In workspace's root folder, running ./PHPUnit.php --version returns:
PHPUnit 8.5.15 by Sebastian Bergmann and contributors.
settings.json:
{
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\wsl.exe",
"terminal.integrated.shell.linux": "/usr/bin/zsh",
/// WSL above /// Host below
"gitlens.hovers.currentLine.over": "line",
"search.useIgnoreFiles": false,
"php.suggest.basic": false,
"php.validate.enable": false,
"emmet.excludeLanguages": [
"markdown",
"php"
],
"commit-message-editor.confirmAmend": false,
"php.problems.workspaceAnalysis": false,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontWeight": "400",
"git.confirmSync": false,
"git.autofetch": true,
"debug.allowBreakpointsEverywhere": true,
"tabnine.experimentalAutoImports": true,
"terminal.integrated.tabs.enabled": true,
"editor.formatOnType": true,
"php.executablePath": "/usr/bin/php7.4",
"php.problems.exclude": {
"**vendor**": true
}
}