How can I run test cases for my plugin

Please provide the solution for run my plugin testcases 

Hi,

if you need an example for PHPunit and how to test a plugin, you can have a look at one of our plugins at GitHub: GitHub - shopwareLabs/SwagBackendOrder: plugin which allows you to create orders via backend module

If you have further questions, feel free to ask  Thumb-Up

Viele Grüße aus Schöppingen

cool Michael Telgmann

1 „Gefällt mir“

While run the phpunit in my plugin folder, I got the following error,

PHP Fatal error:  require_once(): Failed opening required ‘PHPUnit/Framework/TestCase.php’ (include_path=’/var/www/shopware/engine/Library:.:/usr/share/php:/usr/share/pear:’) in /var/www/shopware/engine/Shopware/Components/Test/Plugin/TestCase.php on line 46