Download the PHP package sl0wlydeadly/pimcore-codeception-config-files without Composer
On this page you can find all versions of the php package sl0wlydeadly/pimcore-codeception-config-files. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sl0wlydeadly/pimcore-codeception-config-files
More information about sl0wlydeadly/pimcore-codeception-config-files
Files in sl0wlydeadly/pimcore-codeception-config-files
Download sl0wlydeadly/pimcore-codeception-config-files
More information about sl0wlydeadly/pimcore-codeception-config-files
Files in sl0wlydeadly/pimcore-codeception-config-files
Vendor sl0wlydeadly
Package pimcore-codeception-config-files
Short Description Pimcore Files For Codeception Test Environment Configuration
License MIT
Package pimcore-codeception-config-files
Short Description Pimcore Files For Codeception Test Environment Configuration
License MIT
Please rate this library. Is it a good library?
Informations about the package pimcore-codeception-config-files
Pimcore Codeception Config Files
Pimcore Files For Codeception Test Environment Configuration
Install
Run this command
DB Configuration
-
Log into your MariaDB client as root
-
Create a different DB for tests to run i.e. pimcore_test
- Give your pimcore user priviledges to that DB
Setup test config in your Pimcore project
- [Example] we have a docker DB container at port 3306 called db and a test DB called pimcore_test then the doctrine dbal part of config under config/packages/test/config.yaml should look like this:
Setup your bootstrap.php according to Pimcore documentation for codeception tests
- Mine looks something like this:
Setup your codeception configurations
- In the root path of your Pimcore project you should have a tests directory.
-
In tests directory make sure you have a codeception.dist.yml configuration file. You may modify and adjust the content to your preferences but as default it should look something like this:
- Set up your Test suite config to use the package data to recreate the test database after a test run. Below example for Unit test suite configuring Unit.suite.yml should look something like that:
For more config info read the official Pimcore documentation under Codeception tests
Build your codeception config
Run following command:
Run tests of your configured test suite using test as environment
All versions of pimcore-codeception-config-files with dependencies
PHP Build Version
Package Version
No informations.
The package sl0wlydeadly/pimcore-codeception-config-files contains the following files
Loading the files please wait ....