dockware
Search…
Testing
PHP Unit Tests
We highly encourage you to execute the unit tests before creating a Pull Request. Connect into your container and run this command:
IN DOCKER
1
./psh.phar unit
Copied!
We know the unit tests take quite a long time.
If you want to just execute tests you have created, simply assign your custom group to your test. Then run the test suite only for the tests of your custom group.
That should be way faster
Don't forget to still run all tests before creating your pull request.
1
/**
2
* @group mysample
3
*/
4
public function testMyFeature(): void
5
{
6
....
7
}
Copied!
IN DOCKER
1
php ./vendor/bin/phpunit --configuration ./vendor/shopware/platform/phpunit.xml.dist --group mysample
Copied!
Administration Tests
There is also a test suite for unit tests in the administration. You can run the Javascript tests with the following command:
IN DOCKER
1
./psh.phar administration:unit
Copied!
Last modified 8mo ago
Copy link