2
2
3
3
## DotReporter
4
4
5
- [ See Source] ( https://github.com/Codeception/Codeception/blob/main /ext/DotReporter.php )
5
+ [ See Source] ( https://github.com/Codeception/Codeception/blob/5.1 /ext/DotReporter.php )
6
6
7
7
DotReporter provides less verbose output for test execution.
8
- Like PHPUnit printer it prints dots "." for successful tests and "F" for failures.
8
+ Like PHPUnit printer it prints dots "." for successful testes and "F" for failures.
9
9
10
10
![ ] ( https://cloud.githubusercontent.com/assets/220264/26132800/4d23f336-3aab-11e7-81ba-2896a4c623d2.png )
11
11
@@ -34,9 +34,11 @@ codecept run --ext DotReporter
34
34
Failures and Errors are printed by a standard Codeception reporter.
35
35
Use this extension as an example for building custom reporters.
36
36
37
+
38
+
37
39
## Logger
38
40
39
- [ See Source] ( https://github.com/Codeception/Codeception/blob/main /ext/Logger.php )
41
+ [ See Source] ( https://github.com/Codeception/Codeception/blob/5.1 /ext/Logger.php )
40
42
41
43
Log suites/tests/steps using Monolog library.
42
44
Monolog should be installed additionally by Composer.
@@ -60,18 +62,20 @@ extensions:
60
62
* ` max_files` (default: 3) - how many log files to keep
61
63
62
64
65
+
66
+
63
67
# # Recorder
64
68
65
- [See Source](https://github.com/Codeception/Codeception/blob/main /ext/Recorder.php)
69
+ [See Source](https://github.com/Codeception/Codeception/blob/5.1 /ext/Recorder.php)
66
70
67
- Saves a screenshot of each step in acceptance tests and shows them as a slideshow on one HTML page (here's an [example](https://codeception.com/images/recorder.gif)).
68
- Works only for suites with WebDriver module enabled.
71
+ Saves a screenshot of each step in acceptance tests and shows them as a slideshow on one HTML page (here's an [example](https://codeception.com/images/recorder.gif))
72
+ Activated only for suites with WebDriver module enabled.
69
73
70
74
The screenshots are saved to `tests/_output/record_*` directories, open `index.html` to see them as a slideshow.
71
75
72
76
# ### Installation
73
77
74
- Add this to the list of enabled extensions in `codeception.yml` or `Acceptance .suite.yml` :
78
+ Add this to the list of enabled extensions in `codeception.yml` or `acceptance .suite.yml` :
75
79
76
80
` ` ` yaml
77
81
extensions:
@@ -102,23 +106,26 @@ extensions:
102
106
` ` `
103
107
# ### Skipping recording of steps with annotations
104
108
105
- It is also possible to skip recording of steps for specified tests by using the ` @skipRecording` annotation.
109
+ It is also possible to skip recording of steps for specified tests by using the @skipRecording annotation.
106
110
107
111
` ` ` php
108
112
/**
109
113
* @skipRecording login
110
114
* @skipRecording amOnUrl
111
- */
115
+ *\ /
112
116
public function testLogin(AcceptanceTester $I)
113
117
{
114
118
$I->login();
115
119
$I->amOnUrl('https://codeception.com');
116
120
}
117
121
` ` `
118
122
123
+
124
+
125
+
119
126
# # RunBefore
120
127
121
- [See Source](https://github.com/Codeception/Codeception/blob/main /ext/RunBefore.php)
128
+ [See Source](https://github.com/Codeception/Codeception/blob/5.1 /ext/RunBefore.php)
122
129
123
130
Extension for execution of some processes before running tests.
124
131
@@ -143,13 +150,15 @@ extensions:
143
150
- dependent_process_2_2
144
151
` ` `
145
152
146
- HINT : You can use different configurations per environment.
153
+ HINT : you can use different configurations per environment.
154
+
155
+
147
156
148
157
# # RunFailed
149
158
150
- [See Source](https://github.com/Codeception/Codeception/blob/main /ext/RunFailed.php)
159
+ [See Source](https://github.com/Codeception/Codeception/blob/5.1 /ext/RunFailed.php)
151
160
152
- Saves failed tests into ` tests/_output/failed` in order to rerun failed tests.
161
+ Saves failed tests into tests/_output/failed in order to rerun failed tests.
153
162
154
163
To rerun failed tests just run the `failed` group :
155
164
@@ -161,26 +170,30 @@ To change failed group name add:
161
170
` ` `
162
171
--override "extensions: config: Codeception\E xtension\R unFailed: fail-group: another_group1"
163
172
` ` `
164
- Remember : If you run tests and they generated custom-named fail group, to run this group, you should add override too.
173
+ Remember : if you run tests and they generated custom-named fail group, to run this group, you should add override too
165
174
166
- **This extension is enabled by default**.
175
+ Starting from Codeception 2.1 **this extension is enabled by default**.
167
176
168
177
` ` ` yaml
169
178
extensions:
170
179
enabled: [Codeception\E xtension\R unFailed]
171
180
` ` `
172
181
182
+ On each execution failed tests are logged and saved into `tests/_output/failed` file.
183
+
184
+
185
+
173
186
# # RunProcess
174
187
175
- [See Source](https://github.com/Codeception/Codeception/blob/main /ext/RunProcess.php)
188
+ [See Source](https://github.com/Codeception/Codeception/blob/5.1 /ext/RunProcess.php)
176
189
177
190
Extension to start and stop processes per suite.
178
- Can be used to start/stop chromedriver, MailCatcher , etc.
191
+ Can be used to start/stop selenium server, chromedriver, mailcatcher , etc.
179
192
180
- Can be enabled in suite config :
193
+ Can be configured in suite config :
181
194
182
195
` ` ` yaml
183
- # Acceptance .suite.yml
196
+ # acceptance .suite.yml
184
197
extensions:
185
198
enabled:
186
199
- Codeception\E xtension\R unProcess:
@@ -190,7 +203,7 @@ extensions:
190
203
Multiple parameters can be passed as array :
191
204
192
205
` ` ` yaml
193
- # Acceptance .suite.yml
206
+ # acceptance .suite.yml
194
207
195
208
extensions:
196
209
enabled:
@@ -201,7 +214,8 @@ extensions:
201
214
202
215
In the end of a suite all launched processes will be stopped.
203
216
204
- To wait for the process to be launched, use the `sleep` option. In this case the configuration needs to be specified as object :
217
+ To wait for the process to be launched use `sleep` option.
218
+ In this case you need configuration to be specified as object :
205
219
206
220
` ` ` yaml
207
221
extensions:
@@ -212,13 +226,13 @@ extensions:
212
226
sleep: 5 # wait 5 seconds for processes to boot
213
227
` ` `
214
228
215
- HINT : You can use different configurations per environment.
229
+ HINT : you can use different configurations per environment.
216
230
217
231
218
232
219
233
# # SimpleReporter
220
234
221
- [See Source](https://github.com/Codeception/Codeception/blob/main /ext/SimpleReporter.php)
235
+ [See Source](https://github.com/Codeception/Codeception/blob/5.1 /ext/SimpleReporter.php)
222
236
223
237
This extension demonstrates how you can implement console output of your own.
224
238
Recommended to be used for development purposes only.
0 commit comments