In order to execute OXID eShop tests (or any tests written with the Testing Library) you have to configure PhpStorm to use the same PHPUnit settings as e.g. the command runtests of the testing library.
First make sure that you configured the CLI PHP interpreter from the VM ().
PHPUnit by Remote Interpreter. You get a new configuration form. Choose the following
Use composer autoloaderand configure
Path to script: /var/www/oxideshop/vendor/autoload.php
Be sure to refresh the detection of the PhpUnit version with the refresh button every time the version changes. Otherwise PhpStorm might call PhpUnit with the wrong parameters.
Default configuration file:
Default bootstrap file: Not configured