|
| 1 | +PLUGIN_SLUG=wpgraphql-velocity |
| 2 | + |
| 3 | +# Configure these to match your existing testing environment or the one you want to create with Docker. |
| 4 | +## Usually, these values should match the ones in the `wp-config.php` file. |
| 5 | +## If using Local by Flywheel, you can `open AdminerEvo` and find the values in the URL: `http://localhost:{DB_PORT}/?username={DB_USER}&db={DB_NAME}` |
| 6 | +## NOTE: Codeception may modify or the database during testing. If you want to preserve your local data, create a new database and use that for the `DB_NAME`. |
| 7 | +DB_NAME=wordpress |
| 8 | +# localhost creates issues with wp config create command |
| 9 | +DB_HOST=127.0.0.1 |
| 10 | +DB_USER=root |
| 11 | +DB_PASSWORD=password |
| 12 | +DB_PORT=3306 |
| 13 | + |
| 14 | +# The local path to the WordPress root directory, the one containing the wp-load.php file. |
| 15 | +## This can be a relative path from the directory that contains the codeception.yml file, or an absolute path. |
| 16 | +## If you are using Local by Flywheel, you can find the path in the Local by Flywheel app under the site's settings. |
| 17 | +WORDPRESS_ROOT_DIR="/tmp/wordpress" |
| 18 | + |
| 19 | +# This table prefix used by the WordPress site, and in Acceptance tests. |
| 20 | +WORDPRESS_TABLE_PREFIX=wp_ |
| 21 | + |
| 22 | +# The URL and domain of the WordPress site, and in Acceptance tests. |
| 23 | +## If the port is in use, you can change it to a different port. |
| 24 | +WORDPRESS_URL=http://localhost |
| 25 | +WORDPRESS_DOMAIN=localhost |
| 26 | +WORDPRESS_ADMIN_PATH=/wp-admin |
| 27 | + |
| 28 | +# The username and password of the administrator user of the WordPress site, and in Acceptance tests. |
| 29 | +WORDPRESS_ADMIN_USER=admin |
| 30 | +WORDPRESS_ADMIN_PASSWORD=password |
| 31 | + |
| 32 | + |
| 33 | +# Tests will require a MySQL database to run. |
| 34 | +# Do not use a database that contains important data! |
| 35 | +WORDPRESS_DB_HOST=${DB_HOST} |
| 36 | +WORDPRESS_DB_USER=${DB_USER} |
| 37 | +WORDPRESS_DB_PASSWORD=${DB_PASSWORD} |
| 38 | +WORDPRESS_DB_NAME=${DB_NAME} |
| 39 | +WORDPRESS_DB_PORT=${DB_PORT} |
| 40 | + |
| 41 | +# WPUnit tests will use these variables instead. |
| 42 | +# By default this is the same as WordPress |
| 43 | +TEST_DB_HOST=${WORDPRESS_DB_HOST} |
| 44 | +TEST_DB_USER=${WORDPRESS_DB_USER} |
| 45 | +TEST_DB_PASSWORD=${WORDPRESS_DB_PASSWORD} |
| 46 | +TEST_DB_NAME=${WORDPRESS_DB_NAME} |
| 47 | +TEST_DB_PORT=${WORDPRESS_DB_PORT} |
| 48 | +# The Integration suite will use this table prefix for the WordPress tables. |
| 49 | +TEST_TABLE_PREFIX=test_ |
| 50 | + |
| 51 | +# The DSN used by Acceptance tests. |
| 52 | +TEST_DB_DSN="mysql:host=${TEST_DB_HOST};port=${TEST_DB_PORT};dbname=${TEST_DB_NAME}" |
| 53 | + |
| 54 | +# The following variables are used to determine test behavior. |
| 55 | + |
| 56 | +# Include 3rd party plugins (e.g. WooCommerce) in the tests. |
| 57 | +INCLUDE_EXTENSIONS=true |
| 58 | +# Skips recreating the database before running the tests. |
| 59 | +SKIP_DB_CREATE=false |
| 60 | +# Skips configuring the WordPress installation |
| 61 | +SKIP_WP_SETUP=false |
| 62 | +# Skips cleanup after the test suite run. |
| 63 | +SKIP_TESTS_CLEANUP=true |
| 64 | +# The default Codeception suite to run. |
| 65 | +SUITES=wpunit |
0 commit comments