Last active
November 3, 2017 21:51
-
-
Save JohnDeeBDD/fa190c504fe243270230af6418d47d76 to your computer and use it in GitHub Desktop.
A sample YML configuation for acceptance testing WordPress Codeception
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actor: AcceptanceTester | |
modules: | |
enabled: | |
- WPDb | |
- WPWebDriver | |
- Asserts | |
- \Helper\Acceptance | |
config: | |
WPDb: | |
dsn: 'mysql:host=localhost;dbname=wordpress' | |
user: 'wordpressuser' | |
password: 'password' | |
populate: true | |
cleanup: true | |
url: 'http://localhost' | |
urlReplacement: false #if true: replace the hardcoded dump URL with the one above | |
tablePrefix: 'wp_' | |
dump: 'tests/_data/MyDumpFile.sql' | |
populator: 'sudo mysql wordpress < tests/_data/MyDumpFile.sql -p' | |
WPWebDriver: | |
url: 'http://localhost' | |
window_size: maximize | |
adminUsername: 'admin' | |
adminPassword: 'password' | |
adminPath: '/wp-admin' | |
port: 4444 | |
browser: phantomjs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment