1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00
php-e107/e107_tests/codeception.yml

37 lines
1.0 KiB
YAML
Raw Normal View History

2018-02-06 04:08:52 -06:00
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
2019-12-23 19:09:08 +01:00
bootstrap: _bootstrap.php
coverage:
enabled: true
include:
- '%app_path%/*.php'
- '%app_path%/e107_admin/**/*.php'
- '%app_path%/e107_core/**/*.php'
- '%app_path%/e107_handlers/**/*.php'
- '%app_path%/e107_images/**/*.php'
- '%app_path%/e107_plugins/**/*.php'
- '%app_path%/e107_themes/**/*.php'
- '%app_path%/e107_web/**/*.php'
exclude:
- './**'
- '%app_path%/e107_handlers/vendor/**/*.php'
- '%app_path%/e107_tests/**'
params:
- lib/config.php
2018-02-06 04:08:52 -06:00
extensions:
enabled:
- Codeception\Extension\RunFailed
modules:
enabled:
- \Helper\DelayedDb:
Major improvements to Deployer system (backwards-incompatible) Deployers, a concept unique to this repository, are now more separated from Codeception modules. This commit adds NoopDeployer, LocalDeployer, and SFTPDeployer to address the three deployment target types in use by testers today. The changes are backwards-incompatible because the structure of config.sample.yml has changed, and all testers need to change their config.yml or config.local.yml to continue testing. The reason for this change is that the section "manual" no longer makes sense now that Deployers are on a spectrum of automation levels. The subsections under "manual" have been broken out into the root level. The "db_dump" section has been merged into the new "db" root section. There is a new "fs" root section used by the SFTP Deployer. Other changes, enhancements, and bugfixes: * cPanelDeployer no longer downgrades to "manual" mode when credentials are missing or an unsupported component is requested. It now throws an exception. * Deployer::unlinkAppFile() was implemented for acceptance tests out of necessity because the app requires a configuration file to be deleted before re-running the app's installer. * If a Deployer subclass does not implement the unlinkAppFile() method, tests that depend on the method will be skipped gracefully. * DeployerFactory now has a better autoload mechanism. * A logical error in lib/config.php prevented missing nested array items from using their default values. * The Base Helper no longer pointlessly caches the DelayedDb module * _bootstrap.php serializes the config.yml params into a global constant so that the DeployerFactory can freely access the information.
2018-08-15 23:04:59 -05:00
dsn: 'mysql:host=%db.host%;port=%db.port%;dbname=%db.dbname%'
user: '%db.user%'
password: '%db.password%'
populate: '%db.populate%'
dump: '%db.dump_path%'