-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcodeception.dist.yml
102 lines (102 loc) · 3.57 KB
/
codeception.dist.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
params:
- .env
settings:
colors: true
memory_limit: 1024M
extensions:
enabled:
- Codeception\Extension\RunFailed
commands:
- lucatume\WPBrowser\Command\DbExport
- lucatume\WPBrowser\Command\DbImport
- lucatume\WPBrowser\Command\DevInfo
- lucatume\WPBrowser\Command\DevRestart
- lucatume\WPBrowser\Command\DevStart
- lucatume\WPBrowser\Command\DevStop
- lucatume\WPBrowser\Command\GenerateWPAjax
- lucatume\WPBrowser\Command\GenerateWPCanonical
- lucatume\WPBrowser\Command\GenerateWPRestApi
- lucatume\WPBrowser\Command\GenerateWPRestController
- lucatume\WPBrowser\Command\GenerateWPRestPostTypeController
- lucatume\WPBrowser\Command\GenerateWPUnit
- lucatume\WPBrowser\Command\GenerateWPXMLRPC
- lucatume\WPBrowser\Command\MonkeyCacheClear
- lucatume\WPBrowser\Command\MonkeyCachePath
- lucatume\WPBrowser\Command\RunAll
- lucatume\WPBrowser\Command\RunOriginal
coverage:
enabled: true
remote: false
c3_url: "%WORDPRESS_URL%/wp-content/plugins/wp-graphql-headless-login/wp-graphql-headless-login.php"
include:
- src/*
- /access-functions.php
- /activation.php
- /deactivation.php
exclude:
- /bin/*
- /docs/*
- /node_modules/*
- /packages/*
- /tests/*
- /vendor-prefixed/*
- /vendor/*
show_only_summary: false
modules:
config:
REST:
depends: lucatume\WPBrowser\Module\WPBrowser
url: "%WORDPRESS_URL%"
lucatume\WPBrowser\Module\WPFilesystem:
wpRootFolder: '%WORDPRESS_ROOT_DIR%'
themes: '/wp-content/themes'
plugins: '/wp-content/plugins'
mu-plugins: '/wp-content/mu-plugins'
uploads: '/wp-content/uploads'
lucatume\WPBrowser\Module\WPBrowser:
url: '%WORDPRESS_URL%'
adminUsername: '%WORDPRESS_ADMIN_USER%'
adminPassword: '%WORDPRESS_ADMIN_PASSWORD%'
adminPath: '/wp-admin'
headers:
X_WPBROWSER_REQUEST: 1
X_TEST_REQUEST: 1
X_APM_REQUEST: 1
connect_timeout: 3
cookies: false
lucatume\WPBrowser\Module\WPDb:
dsn: "%TEST_DB_DSN%"
user: "%TEST_DB_USER%"
password: "%TEST_DB_PASSWORD%"
populator: 'mysql -u $user -p$password -h $host $dbname < $dump'
dump: 'tests/_data/dump.sql'
populate: true
cleanup: true
waitlock: 0
url: "%WORDPRESS_URL%"
urlReplacement: true
tablePrefix: "%WORDPRESS_TABLE_PREFIX%"
lucatume\WPBrowser\Module\WPLoader:
wpRootFolder: "%WORDPRESS_ROOT_DIR%"
dbName: "%TEST_DB_NAME%"
dbHost: "%TEST_DB_HOST%"
dbUser: "%TEST_DB_USER%"
dbPassword: "%TEST_DB_PASSWORD%"
tablePrefix: "%TEST_TABLE_PREFIX%"
domain: "%WORDPRESS_DOMAIN%"
adminEmail: "%WORDPRESS_ADMIN_EMAIL%"
title: 'Test'
plugins:
- wp-graphql/wp-graphql.php
- wp-graphql-headless-login/wp-graphql-headless-login.php
activatePlugins:
- wp-graphql/wp-graphql.php
- wp-graphql-headless-login/wp-graphql-headless-login.php
configFile: 'tests/_data/config.php'