You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configuration file `codeception.yml` is generated by `codecept bootsrtap` command and contains all parameters for running Codeception.
6
+
7
+
Example:
8
+
9
+
```yaml
10
+
paths:
11
+
tests: tests
12
+
log: tests/_log
13
+
data: tests/_data
14
+
helpers: tests/_helpers
15
+
settings:
16
+
bootstrap: _bootstrap.php
17
+
suite_class: \PHPUnit_Framework_TestSuite
18
+
colors: false
19
+
memory_limit: 1024M
20
+
log: true
21
+
modules:
22
+
config:
23
+
Db:
24
+
dsn: ''
25
+
user: ''
26
+
password: ''
27
+
dump: tests/_data/dump.sql
28
+
```
29
+
30
+
### Parameters
31
+
32
+
#### Paths
33
+
34
+
* tests - path to test directory
35
+
* log - path to log directory, where tests output stored
36
+
* data - path to data directory, where tests input data may be stored
37
+
* helpers - path to [helper](/docs/03-Modules#helpers) modules with custom actions and assertions
38
+
39
+
#### Settings
40
+
41
+
* bootstrap - the bootstrap file always loaded before each step. Can be useful for loading fixtures. But probably you want manual control, then remove this line and use `require_once '_bootsrtap.php'` inside tests.
42
+
* suite_class - suite is used as a tests container.
43
+
* colors - colored ooutput, by default is `false` on Windows and `true` on other systems. Install [ANSICon](http://adoxa.110mb.com/ansicon/) on Windows and set to true.
44
+
* memory_limit - PHP memory consuming parameter. Increase this value if you run out of memory.
45
+
* log - weather to log tests execution process to file.
46
+
47
+
#### Modules
48
+
49
+
This section is used to configure a module for all suites. If you got module shared through all suites, put their configuration here.
50
+
51
+
## Suite Configuration
52
+
53
+
Each suite has it's configuration file in `tests` directory. It's used for configuring modules used in test scenarios.
54
+
55
+
Example:
56
+
57
+
``` yaml
58
+
class_name: WebGuy
59
+
modules:
60
+
enabled:
61
+
- PhpBrowser
62
+
- WebHelper
63
+
config:
64
+
PhpBrowser:
65
+
url: 'http://localhost/myapp/'
66
+
```
67
+
68
+
### Parameters
69
+
70
+
* class_name - a [Guy class](http://codeception.com/docs/02-GettingStarted#guys) used in this suite.
71
+
72
+
#### Modules
73
+
74
+
* enabled - a list of modules. The order of list *matters* as the next modules can replace actions from previous ones.
75
+
* config - config of module. The configuration parameters for each module is documented on pages for each module. There are required and optional pameters.
0 commit comments