Skip to main content
Version: 4.0

Run Tests

# Install Pimcore if not done
PIMCORE_KERNEL_CLASS=Kernel APP_ENV=test PIMCORE_TEST_DB_DSN=mysql://root:ROOT@coreshop-b2b-company-db/coreshop4___behat vendor/bin/pimcore-install --mysql-host-socket=coreshop-b2b-company-db --admin-username=admin --admin-password=admin --mysql-username=root --mysql-password=ROOT --mysql-database=coreshop4___behat --skip-database-config --no-interaction
PIMCORE_KERNEL_CLASS=Kernel APP_ENV=test PIMCORE_TEST_DB_DSN=mysql://root:ROOT@coreshop-b2b-company-db/coreshop4___behat bin/console coreshop:install
PIMCORE_KERNEL_CLASS=Kernel APP_ENV=test PIMCORE_TEST_DB_DSN=mysql://root:ROOT@coreshop-b2b-company-db/coreshop4___behat bin/console pimcore:bundle:install CoreShopB2BCompanyBundle

# Run Behat Domain
CORESHOP_SKIP_DB_SETUP=1 PIMCORE_TEST_DB_DSN=mysql://root:ROOT@coreshop-b2b-company-db/coreshop4___behat vendor/bin/behat -c behat.yml.dist -p default

# OUTSIDE CONTAINER
# Run Symfony Server
vendor/bin/bdi detect drivers
APP_ENV=test PIMCORE_TEST_DB_DSN=mysql://root:ROOT@127.0.0.1:3306/coreshop4___behat symfony server:start --port=9080 --dir=public --no-tls


# Run Behat
CORESHOP_SKIP_DB_SETUP=1 PANTHER_EXTERNAL_BASE_URI=http://127.0.0.1:9080/index_test.php PANTHER_NO_HEADLESS=0 PIMCORE_TEST_DB_DSN=mysql://root:ROOT@127.0.0.1:3306/coreshop4___behat php -d memory_limit=-1 vendor/bin/behat -c behat.yml.dist -p ui -vvv