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
Copy file name to clipboardExpand all lines: changelog.markdown
+41-1Lines changed: 41 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,48 @@ title: Codeception Changelog
9
9
10
10
#### 2.2.8
11
11
12
+
***[WebDriver]** Added tab actions (not supported in PhantomJS):
13
+
*`openNewTab` opens a new tab and switches to it
14
+
*`closeTab` closes a tab and switches to previous
15
+
*`switchToNextTab` switches to next tab
16
+
*`switchToPreviousTab` switches to previous tab
17
+
***[WebDriver]** Added actions to click element by coordinates. Via **[gimler](https://github.com/gimler)**
18
+
*`clickWithLeftButton` clicks element with offset
19
+
*`clickWithRightButton` right clicks on element with offset
20
+
***[WebDriver]** Added `js_error_logging` option to print JS logs in console and in HTML report by **[ngraf](https://github.com/ngraf)**. See [#3821](https://github.com/Codeception/Codeception/issues/3821)
21
+
***[WebDriver]** Improvements to `seeInField` by **[gimler](https://github.com/gimler)**. See [#3905](https://github.com/Codeception/Codeception/issues/3905)
22
+
* support option text in seeInField not only value
23
+
* fix bug match with and without whitespaces
24
+
* fix bug seeInField not working after selectOption
25
+
***[Wedriver]**`pageload_timeout` config option added. The amount of time to wait for a page load to complete before throwing an error. This patch allows to reduce issues from phantomjs random freezing. See [#3874](https://github.com/Codeception/Codeception/issues/3874). Thanks to **[oprudkyi](https://github.com/oprudkyi)**
26
+
***[WebDriver]**`checkOption` can check option by name [#3852](https://github.com/Codeception/Codeception/issues/3852). By **[gimler](https://github.com/gimler)**
27
+
***[WebDriver]** Fixed clicking numerical links, like `<a href='/'>222</a>` (DOM Exception 12 errors). See [#3865](https://github.com/Codeception/Codeception/issues/3865). By **[gimler](https://github.com/gimler)**
28
+
*[PhpBrowser][Frameworks] Fixed [#3824](https://github.com/Codeception/Codeception/issues/3824) when submitForm used wrong value for `select` by **[JorisVanEijden](https://github.com/JorisVanEijden)**
12
29
***[Laravel5]** Added `seeNumRecords` and `grabNumRecords` methods. See [#3816](https://github.com/Codeception/Codeception/issues/3816). By **[dmoreno](https://github.com/dmoreno)**
13
-
30
+
* Improved `@depends` to work with `@dataprovider`. Fixes [#3862](https://github.com/Codeception/Codeception/issues/3862). Thanks **[edno](https://github.com/edno)**
31
+
* Fixed relative paths for screenshots in HTML report. Fixes [#3857](https://github.com/Codeception/Codeception/issues/3857)
32
+
* Improved error description when injecting invalid classes by **[timtkachenko](https://github.com/timtkachenko)**
33
+
* Improved `--override` option to support deep configs. See [#3820](https://github.com/Codeception/Codeception/issues/3820)
34
+
***[Yii2]** Clear unloaded fixtures after test. Closes [#3794](https://github.com/Codeception/Codeception/issues/3794)
35
+
***[PhpBrowser]** Ensure sessions have independent cookies by **[insightfuls](https://github.com/insightfuls)**. Fixes [#3911](https://github.com/Codeception/Codeception/issues/3911)
36
+
* Implemented load params from php files by **[arrilot](https://github.com/arrilot)**. See [#3914](https://github.com/Codeception/Codeception/issues/3914)
37
+
***[Yii2]** Fixes [#3916](https://github.com/Codeception/Codeception/issues/3916): Don't try to start transaction when working with non-transactional DBs by **[samdark](https://github.com/samdark)**.
38
+
***[REST]** Removed broken xdebug_remote functionality by **[Naktibalda](https://github.com/Naktibalda)**. Fixes [#3883](https://github.com/Codeception/Codeception/issues/3883)
39
+
* Added graceful termination by Ctrl-C in PHP 7.1 by **[AdrianSkierniewski](https://github.com/AdrianSkierniewski)**. See [#3907](https://github.com/Codeception/Codeception/issues/3907)
40
+
***[Db]** Disconnect after initializing when using reconnect, fixes [#3903](https://github.com/Codeception/Codeception/issues/3903). By **[insightfuls](https://github.com/insightfuls)**
41
+
***[Phalcon]** Fixed handling `$_SERVER` with Phalcon Connector by **[sergeyklay](https://github.com/sergeyklay)**
42
+
* Avoid notice when checking width of terminal on Windows by **[ashnazg](https://github.com/ashnazg)**. See [#3893](https://github.com/Codeception/Codeception/issues/3893)
43
+
***[Filesystem]**`dontSeeFileFound` searches in path by **[Naktibalda](https://github.com/Naktibalda)**. Fixes [#3877](https://github.com/Codeception/Codeception/issues/3877)
44
+
*[PhpBrowser][Frameworks]`grabValueFrom` to work after `fillField` by **[wumouse](https://github.com/wumouse)**. Fix [#3866](https://github.com/Codeception/Codeception/issues/3866)
45
+
***[Db]** Oci driver to cleans up views [#3881](https://github.com/Codeception/Codeception/issues/3881), and result set improvements [#3840](https://github.com/Codeception/Codeception/issues/3840) by **[ashnazg](https://github.com/ashnazg)**.
46
+
***[Yii2]** Close transaction created by the controller-action on interruption. See [#3834](https://github.com/Codeception/Codeception/issues/3834). By **[alex20465](https://github.com/alex20465)**
47
+
***[Yii2]** Fixed using `part: init` with other modules like WebDriver. See [#3876](https://github.com/Codeception/Codeception/issues/3876). By **[margori](https://github.com/margori)**
48
+
***[REST]** Implemented `dontSeeResponseJsonMatchesXpath` method by **[Naktibalda](https://github.com/Naktibalda)**. Closes [#3843](https://github.com/Codeception/Codeception/issues/3843)
49
+
***[REST]** Convert array having single element to XML correctly. Fixes [#3827](https://github.com/Codeception/Codeception/issues/3827) by **[Naktibalda](https://github.com/Naktibalda)**
50
+
* Linter to check `exec` function to be enabled before using it. By **[Naktibalda](https://github.com/Naktibalda)**. See [#3886](https://github.com/Codeception/Codeception/issues/3886)
51
+
* Fixed [#3922](https://github.com/Codeception/Codeception/issues/3922): division by zero in steps output on small terminal windows.
52
+
* Improved getting terminal width from ENV variable (bash). Fixes [#3788](https://github.com/Codeception/Codeception/issues/3788) by **[schmunk42](https://github.com/schmunk42)**
53
+
14
54
#### 2.2.7
15
55
16
56
***Config validation** with `codecept config:validate` command. Use it:
Copy file name to clipboardExpand all lines: docs/11-Codecoverage.md
+13-29Lines changed: 13 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -28,33 +28,7 @@ coverage:
28
28
29
29
{% endhighlight %}
30
30
31
-
That's ok for now. But what files should be present in final coverage report? You can filter files by providing blacklist and whitelist filters like this:
32
-
33
-
{% highlight yaml %}
34
-
35
-
coverage:
36
-
enabled: true
37
-
whitelist:
38
-
include:
39
-
- app/*
40
-
exclude:
41
-
- app/cache/*
42
-
blacklist:
43
-
include:
44
-
- app/controllers/*
45
-
exclude:
46
-
- app/cache/CacheProvider.php
47
-
48
-
49
-
{% endhighlight %}
50
-
What are whitelists and blacklists?
51
-
52
-
* A **whitelist** is a list of files that should be included in report even they were not touched.
53
-
* A **blacklist** is a list of files that should be excluded from report even they were touched.
54
-
55
-
<divclass="alert alert-info">
56
-
The blacklist functionality has been removed from PHPUnit 5, but it can still be used with PHPUnit 4.8.
57
-
</div>
31
+
That's ok for now. But what files should be present in final coverage report?
58
32
Pass an array of files or directory to include/exclude sections. The path ending with '\*' matches the directory.
59
33
Also you can use '\*' mask in a file name, i.e. `app/models/*Model.php` to match all models.
60
34
@@ -70,10 +44,20 @@ coverage:
70
44
- app/cache/*
71
45
72
46
{% endhighlight %}
47
+
Include and exclude options can be redefined for each suite in corresponding config files.
48
+
49
+
By default, if coverage is reported to be < 35% it is marked as low, and >70% is high coverage.
50
+
You can also define high and low boundaries with `low_limit` and `high_limit` config options:
51
+
52
+
{% highlight yaml %}
53
+
54
+
coverage:
55
+
enabled: true
56
+
low_limit: 30
57
+
high_limit: 60
73
58
74
-
These `include` and `exclude` options are to add or remove files from a whitelist.
59
+
{% endhighlight %}
75
60
76
-
All these settings can be redefined for each suite in their config files.
0 commit comments