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
Slideshows saves are saved into `tests/_output/record_*` directories.
36
-
Open `index.html` to see the slideshow.
75
+
The screenshots are saved to `tests/_output/record_*` directories, open `index.html` to see them as a slideshow.
37
76
38
77
#### Installation
39
78
40
-
Add to list of enabled extensions
79
+
Add this to the list of enabled extensions in `codeception.yml` or `acceptance.suite.yml`:
41
80
42
81
``` yaml
43
82
extensions:
@@ -47,8 +86,8 @@ extensions:
47
86
48
87
#### Configuration
49
88
50
-
* `delete_successful` (default: true) - delete records for successfully passed tests (log only failed and errored)
51
-
* `module` (default: WebDriver) - which module for screenshots to use. Set `AngularJS` if you want to use it with AngularJS module. Generally, module should implement `Codeception\Lib\Interfaces\ScreenshotSaver` interface.
89
+
* `delete_successful` (default: true) - delete screenshots for successfully passed tests (i.e. log only failed and errored tests).
90
+
* `module` (default: WebDriver) - which module for screenshots to use. Set `AngularJS` if you want to use it with AngularJS module. Generally, the module should implement `Codeception\Lib\Interfaces\ScreenshotSaver` interface.
52
91
53
92
54
93
#### Examples:
@@ -58,13 +97,15 @@ extensions:
58
97
enabled:
59
98
Codeception\Extension\Recorder:
60
99
module: AngularJS # enable for Angular
61
-
delete_successful: false # show successful reports
100
+
delete_successful: false # keep screenshots of successful tests
Copy file name to clipboardExpand all lines: changelog.markdown
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,26 @@ title: Codeception Changelog
7
7
8
8
# Changelog
9
9
10
-
#### 2.2.12
10
+
## 2.3.0
11
+
12
+
***PHPUnit 6.x** support [#4142](https://github.com/Codeception/Codeception/issues/4142) by **[MontealegreLuis](https://github.com/MontealegreLuis)**. Class aliases are used, so PHPUnit 4.x and 5.x (for PHP <7) are still supported as well.
13
+
* Suite customization. [Announcement](/05-22-2017/codeception-2-3.html#configuration-improvements)
*`--ext` parameter added to load extensions dynamically.
20
+
* Db Populator [Announcement](/05-22-2017/codeception-2-3.html#db-populator) by **[brutuscat](https://github.com/brutuscat)**
21
+
***[Db]** New configuration defaults, cleanups are disabled: `cleanup: false`, `populate: false`. Enable them to load dumps between tests.
22
+
***[Redis]** New configuration defaults, cleanups are disabled: `cleanupBefore: 'never'` by **[hchonan](https://github.com/hchonan)**
23
+
* Command `generate:phpunit` removed.
24
+
* Bootstrap `_bootstrap.php` files are disabled by default.#### 2.2.12
11
25
12
26
* Don't skip other tests after a failed test [#4226](https://github.com/Codeception/Codeception/issues/4226) by **[Naktibalda](https://github.com/Naktibalda)**
13
27
***[REST]**`seeResponseContainsJson` doesn't crash when json response is not an array by **[Naktibalda](https://github.com/Naktibalda)**
14
28
***[PhpBrowser]** Fixed redirecting to schemaless url by **[Naktibalda](https://github.com/Naktibalda)**[#4218](https://github.com/Codeception/Codeception/issues/4218)
15
-
***[Doctrine2]** Added `grabEntityFromRepository`, `grabEntitiesFromRepository` methods by **[maximelebastard](https://github.com/maximelebastard)**
16
-
***[REST]** Don't fail dontSee*JsonPath assertions when response is scalar value. Closes [#4237](https://github.com/Codeception/Codeception/issues/4237) by **[Naktibalda](https://github.com/Naktibalda)**
29
+
***[Doctrine2]** Added `grabEntityFromRepository`, `grabEntitiesFromRepository` methods by **[maximelebastard](https://github.com/maximelebastard)**
Copy file name to clipboardExpand all lines: docs/03-AcceptanceTests.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ We need to specify the `url` parameter in the acceptance suite config (`tests/ac
53
53
54
54
{% highlight yaml %}
55
55
56
-
class_name: AcceptanceTester
56
+
actor: AcceptanceTester
57
57
modules:
58
58
enabled:
59
59
- PhpBrowser:
@@ -370,7 +370,7 @@ Modify your `acceptance.suite.yml` file:
370
370
371
371
{% highlight yaml %}
372
372
373
-
class_name: AcceptanceTester
373
+
actor: AcceptanceTester
374
374
modules:
375
375
enabled:
376
376
- WebDriver:
@@ -380,8 +380,8 @@ modules:
380
380
381
381
{% endhighlight %}
382
382
383
-
In order to run browser tests you will need Selenium Server or PhantomJS.
384
-
WebDriver module contains a manual on [how to start them](http://codeception.com/docs/modules/WebDriver#Local-Testing).
383
+
In order to run browser tests you will need Selenium Server or PhantomJS.
384
+
See [WebDriver Module](http://codeception.com/docs/modules/WebDriver) for details.
385
385
386
386
Please note that actions executed in a browser will behave differently. For instance, `seeElement` won't just check that the element exists on a page,
387
387
but it will also check that element is actually visible to the user:
@@ -394,7 +394,7 @@ $I->seeElement('#modal');
394
394
{% endhighlight %}
395
395
396
396
While WebDriver duplicates the functionality of PhpBrowser, it has its limitations: It can't check headers, since browsers don't provide APIs for that.
397
-
WebDriver also adds browser-specific functionality which will be listed in next sections.
397
+
WebDriver also adds browser-specific functionality:
398
398
399
399
#### Wait
400
400
@@ -561,7 +561,7 @@ with the help of the [Recorder extension](http://codeception.com/addons#Codecept
561
561
Writing acceptance tests with Codeception and PhpBrowser is a good start.
562
562
You can easily test your Joomla, Drupal, WordPress sites, as well as those made with frameworks.
563
563
Writing acceptance tests is like describing a tester's actions in PHP. They are quite readable and very easy to write.
564
-
Don't forget to repopulate the database on each test run.
564
+
If you need to access the database, you can use the [Db Module](http://codeception.com/docs/modules/Db).
0 commit comments