run Test Command in Aimeos
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
run Test Command in Aimeos
is that possible when I test OmniPayTest.php I receive 25 errors !
why it doesn't recognize TestHelper even it run the bootstrap.php that belongs to ext/ai-payment !
I run the test like that :
./vendor/bin/phpunit --configuration ext/ai-payments/lib/custom/tests/phpunit.xml ext/ai-payments/lib/custom/tests/MShop/Service/Provider/Payment/OmniPayTest.php
neither : php artisan aimeos:setup unittest unittest
allows me to specified which Test class I need to run !
any help ?
why it doesn't recognize TestHelper even it run the bootstrap.php that belongs to ext/ai-payment !
I run the test like that :
./vendor/bin/phpunit --configuration ext/ai-payments/lib/custom/tests/phpunit.xml ext/ai-payments/lib/custom/tests/MShop/Service/Provider/Payment/OmniPayTest.php
neither : php artisan aimeos:setup unittest unittest
allows me to specified which Test class I need to run !
any help ?
Re: run Test Command in Aimeos
You forgot the "--bootstrap vendor/autoload.php" part:
Code: Select all
./vendor/bin/phpunit --bootstrap=vendor/autoload.php -c
ext/ai-payments/lib/custom/tests/phpunit.xml
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: run Test Command in Aimeos
thanks for reply ..
it still give me that 86 errors as it didn't recognized autoload
I tried it : $ ./vendor/bin/phpunit --bootstrap=vendor/autoload.php -c ext/ai-payments/lib/custom/tests/phpunit.xmlaimeos wrote: ↑17 Jan 2021, 17:18 You forgot the "--bootstrap vendor/autoload.php" part:Code: Select all
./vendor/bin/phpunit --bootstrap=vendor/autoload.php -c ext/ai-payments/lib/custom/tests/phpunit.xml
it still give me that 86 errors as it didn't recognized autoload
Re: run Test Command in Aimeos
Here's the documentation how to setup the environment for testing so it works without problems:
https://aimeos.org/docs/latest/develope ... sion-tests
Make sure, you add the packages required by the extensions to your root composer.json file and run "composer up" afterwards.
https://aimeos.org/docs/latest/develope ... sion-tests
Make sure, you add the packages required by the extensions to your root composer.json file and run "composer up" afterwards.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star