Tests expect thirty bees installation with:
- language:
en
- country:
FR
- admin user with email
[email protected]
and passwordthirtybees
- front office user with email
[email protected]
and password123456789
Easiest way to create such environment is by using following command (adjust database user, password, and domain):
php install-dev/index_cli.php \
--newsletter=0 \
--language=en \
--country=fr \
--domain=localhost \
--db_name=thirtybees \
--db_user=thirtybees \
--db_password=thirtybees \
--db_clear=1 \
--db_create=1 \
--name=thirtybees \
[email protected] \
--firstname=thirty \
--lastname=bees \
--password=thirtybees
Copy file codeception.yml
to codeception.local.yml
and update it
to match your environment. Adjust domain name, database user and password.
namespace: Tests
support_namespace: Support
paths:
tests: tests
output: tests/_output
data: tests/Support/Data
support: tests/Support
envs: tests/_envs
actor_suffix: Tester
settings:
colors: true
error_level: E_ALL | E_STRICT
memory_limit: 1280M
bootstrap: _bootstrap.php
extensions:
enabled:
- Codeception\Extension\RunFailed
modules:
config:
Db:
dsn: 'mysql:host=localhost;dbname=thirtybees'
user: 'thirtybees'
password: 'thirtybees'
populate: false
cleanup: false
reconnect: true
WebDriver:
url: 'http://localhost'
browser: phantomjs
window_size: 1920x1080
PhpBrowser:
url: 'http://localhost'
Test are written using codeception framework.
You can run tests suites using following commands:
./vendor/bin/codecept run Unit -c codeception.local.yml
./vendor/bin/codecept run Integration -c codeception.local.yml
./vendor/bin/codecept run Functional -c codeception.local.yml