-
Notifications
You must be signed in to change notification settings - Fork 17
/
codeception.dist.yml
84 lines (82 loc) · 2.62 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
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
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:
- tests/_envs/.env
settings:
colors: true
coverage:
enabled: true
show_only_summary: true
include:
- includes/*
- components/*
- modules/*
- components/*
modules:
config:
WPBrowser:
url: '%WP_URL%'
adminUsername: admin
adminPassword: 1
adminPath: /wp-admin
browser: chrome
port: 4444
headers:
X_WPBROWSER_REQUEST: 1 # Check this in the wp-config.php
capabilities:
chromeOptions:
args:
[
'--headless',
'--disable-gpu',
"--proxy-server='direct://'",
'--proxy-bypass-list=*',
]
WPDb:
dsn: 'mysql:host=%DB_HOST%;dbname=%DB_NAME%'
user: '%DB_USER%'
password: '%DB_PASSWORD%'
dump: 'tests/_data/dump.sql'
populate: true
cleanup: true
reconnect: true
populator: 'mysql -u $user -h $host $dbname < $dump'
waitlock: 0
url: '%WP_URL%'
urlReplacement: false
tablePrefix: wptests_
# Check https://github.com/lucatume/wp-browser
WPLoader:
title: "Codeception Test"
wpRootFolder: '%WP_ROOT%'
dbName: '%DB_NAME%'
dbHost: '%DB_HOST%'
dbUser: '%DB_USER%'
dbPassword: '%DB_PASSWORD%'
tablePrefix: wptests_
domain: '%WP_DOMAIN%'
adminEmail: 'admin@%WP_DOMAIN%'
plugins: [ 'jetformbuilder/jet-form-builder.php' ]
activatePlugins: [ 'jetformbuilder/jet-form-builder.php' ]
WPFilesystem:
wpRootFolder: '%WP_ROOT%'
plugins: '/wp-content/plugins'
mu-plugins: '/wp-content/mu-plugins'
themes: '/wp-content/themes'
uploads: '/wp-content/uploads'