1
+ # Integration suite configuration
2
+ #
3
+ # Run integration and "WordPress unit" tests.
4
+
5
+ # Remember to call `vendor/bin/codecept build` after editing this file.
6
+
7
+ actor : EndToEndTester
8
+ bootstrap : _bootstrap.php
9
+ modules :
10
+ enabled :
11
+ # wp-browser supplied classes, which provide WordPress specific functions
12
+ - lucatume\WPBrowser\Module\WPWebDriver
13
+ - lucatume\WPBrowser\Module\WPDb
14
+ - lucatume\WPBrowser\Module\WPFilesystem
15
+ - lucatume\WPBrowser\Module\WPLoader
16
+ - lucatume\WPBrowser\Module\WPCLI
17
+
18
+ # Codeception supplied classes, which provide assertions and filesystem functions
19
+ - \Codeception\Module\Asserts
20
+ - \Codeception\Module\Filesystem
21
+
22
+ # Our helper classes, which contain functions used across multiple tests.
23
+ # If you created a new file in tests/Support/Helper, add its namespace and class below,
24
+ - \Tests\Support\Helper\Email
25
+ - \Tests\Support\Helper\KitAPI
26
+ - \Tests\Support\Helper\Plugin
27
+ - \Tests\Support\Helper\Select2
28
+ - \Tests\Support\Helper\ThirdPartyPlugin
29
+ - \Tests\Support\Helper\WooCommerce
30
+ - \Tests\Support\Helper\WPAssets
31
+ - \Tests\Support\Helper\WPBulkEdit
32
+ - \Tests\Support\Helper\WPGutenberg
33
+ - \Tests\Support\Helper\WPMetabox
34
+ - \Tests\Support\Helper\WPQuickEdit
35
+ - \Tests\Support\Helper\Xdebug
36
+ config :
37
+ lucatume\WPBrowser\Module\WPCLI :
38
+ path : ' %WORDPRESS_ROOT_DIR%'
39
+ throw : true
40
+ lucatume\WPBrowser\Module\WPWebDriver :
41
+ url : ' %WORDPRESS_URL%'
42
+ adminUsername : ' %WORDPRESS_ADMIN_USER%'
43
+ adminPassword : ' %WORDPRESS_ADMIN_PASSWORD%'
44
+ adminPath : ' %WORDPRESS_ADMIN_PATH%'
45
+ browser : chrome
46
+ host : ' %CHROMEDRIVER_HOST%'
47
+ port : ' %CHROMEDRIVER_PORT%'
48
+ path : ' /wd/hub'
49
+ window_size : 1920x1080
50
+ capabilities :
51
+ " goog:chromeOptions " :
52
+ args :
53
+ - " --disable-gpu"
54
+ - " --disable-dev-shm-usage"
55
+ - " --proxy-server='direct://'"
56
+ - " --proxy-bypass-list=*"
57
+ - " --no-sandbox"
58
+ - " --user-agent=%TEST_SITE_HTTP_USER_AGENT%"
59
+ prefs :
60
+ download.default_directory : ' %WORDPRESS_ROOT_DIR%'
61
+ lucatume\WPBrowser\Module\WPDb :
62
+ dbUrl : ' %WORDPRESS_DB_URL%'
63
+ dump : ' tests/Support/Data/dump.sql'
64
+ # import the dump before the tests; this means the test site database will be repopulated before the tests.
65
+ populate : true
66
+ # re-import the dump between tests; this means the test site database will be repopulated between the tests.
67
+ cleanup : false
68
+ reconnect : false
69
+ url : ' %WORDPRESS_URL%'
70
+ urlReplacement : true
71
+ tablePrefix : ' %WORDPRESS_TABLE_PREFIX%'
72
+ lucatume\WPBrowser\Module\WPFilesystem :
73
+ wpRootFolder : ' %WORDPRESS_ROOT_DIR%'
74
+ lucatume\WPBrowser\Module\WPLoader :
75
+ loadOnly : true
76
+ wpRootFolder : ' %WORDPRESS_ROOT_DIR%'
77
+ dbUrl : ' %WORDPRESS_DB_URL%'
78
+ domain : ' %WORDPRESS_DOMAIN%'
79
+
0 commit comments