Files
wp-graphql-woocommerce/codeception.yml
T

75 lines
2.7 KiB
YAML
Raw Normal View History

2019-03-17 23:50:15 -04:00
paths:
tests: tests
log: tests/_output
2019-03-17 23:50:15 -04:00
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
settings:
colors: true
memory_limit: 1024M
coverage:
enabled: true
remote: true
whitelist:
include:
- wp-graphql-woocommerce.php
2019-04-06 15:59:25 -04:00
- access-functions.php
- class-inflect.php
2019-05-11 01:10:05 -04:00
- includes/*.php
2019-03-17 23:50:15 -04:00
extensions:
enabled:
- Codeception\Extension\RunFailed
commands:
- Codeception\Command\GenerateWPUnit
- Codeception\Command\GenerateWPRestApi
- Codeception\Command\GenerateWPRestController
- Codeception\Command\GenerateWPRestPostTypeController
- Codeception\Command\GenerateWPAjax
- Codeception\Command\GenerateWPCanonical
- Codeception\Command\GenerateWPXMLRPC
params:
- .env
2019-07-17 20:02:41 -04:00
modules:
config:
WPDb:
dsn: 'mysql:host=%TEST_DB_HOST%;dbname=%DB_NAME%'
user: '%DB_USER%'
password: '%DB_PASSWORD%'
2019-07-17 20:02:41 -04:00
dump: 'tests/_data/dump.sql'
#import the dump before the tests; this means the test site database will be repopulated before the tests.
populate: true
# re-import the dump between tests; this means the test site database will be repopulated between the tests.
cleanup: true
waitlock: 0
url: '%WP_URL%'
2019-07-17 20:02:41 -04:00
urlReplacement: true #replace the hardcoded dump URL with the one above
tablePrefix: '%WP_TABLE_PREFIX%'
2019-07-17 20:02:41 -04:00
WPBrowser:
url: '%WP_URL%'
adminUsername: '%ADMIN_USERNAME%'
adminPassword: '%ADMIN_PASSWORD%'
adminPath: '%ADMIN_PATH%'
2019-07-17 20:02:41 -04:00
REST:
depends: WPBrowser
url: '%WP_URL%'
2019-07-17 20:02:41 -04:00
WPFilesystem:
wpRootFolder: '%WP_ROOT_FOLDER%'
plugins: '/wp-content/plugins'
mu-plugins: '/wp-content/mu-plugins'
themes: '/wp-content/themes'
uploads: '/wp-content/uploads'
WPLoader:
wpRootFolder: "%TEST_WP_ROOT_FOLDER%"
2019-07-17 20:02:41 -04:00
dbName: "%TEST_DB_NAME%"
dbHost: "%TEST_DB_HOST%"
dbUser: "%TEST_DB_USER%"
dbPassword: "%TEST_DB_PASSWORD%"
tablePrefix: "%TEST_TABLE_PREFIX%"
domain: "%TEST_WP_DOMAIN%"
adminEmail: "%TEST_ADMIN_EMAIL%"
2019-07-17 20:02:41 -04:00
title: "Test"
plugins: ['woocommerce/woocommerce.php', 'wp-graphql/wp-graphql.php', 'wp-graphql-woocommerce/wp-graphql-woocommerce.php']
activatePlugins: ['woocommerce/woocommerce.php', 'wp-graphql/wp-graphql.php', 'wp-graphql-woocommerce/wp-graphql-woocommerce.php']
configFile: "tests/_data/config.php"