commit | author | age
|
2207d6
|
1 |
#### 2.4.5 |
W |
2 |
|
|
3 |
* Fixed PHPUnit 7.2 compatibility. |
|
4 |
* Introduced **RunBefore** extension to execute scripts before running tests. See #5049 by @aashmelev. |
|
5 |
* [Db] Added two options for MySQL by @bangertz |
|
6 |
* `ssl_cipher` - list of one or more permissible ciphers to use for SSL encryption |
|
7 |
* `ssl_verify_server_cert` - disables certificate CN verification |
|
8 |
* [Db] Always disconnect before connect when `reconnect` is set. By @ashnazg |
|
9 |
* [Db] More explicit PDO closing upon destruction and close opened transactions by @ashnazg. |
|
10 |
* [Recorder Extension] Improved error logging by @OneEyedSpaceFish. See #5101 |
|
11 |
* [Lumen] Fixed file uploads via REST module. By @retnek. |
|
12 |
* Fixed: function getMetadata() may not exist, results in fatal error. See #4913 by @marcovtwout |
|
13 |
|
|
14 |
#### 2.4.4 |
|
15 |
|
|
16 |
* Recently added `extends` property in the `codeception.yml` and `*.suite.yml` files now support absolute paths; by @silverfire |
|
17 |
* Fixed absolute paths handling on Windows in ParamLoader; by @silverfire |
|
18 |
* [Yii2] Refactored database connection handling by @SamMousa. Database connections should now always be closed after tests no matter how you have opened them or who is holding references to them. See #5045 |
|
19 |
* [Symfony] Email handling improved by @mbohal. Fixes #5058. |
|
20 |
* Added optional argument `$expectedCount` to `seeEmailIsSent` |
|
21 |
* Added `dontSeeEmailIsSent` |
|
22 |
* [Recorder Extension] Added `ignore_steps` option to disable recording of specific steps. By @sspat. |
|
23 |
* [WebDriver] Fixed "No Session Timeout" fatal error by @davertmik. |
|
24 |
* [WebDriver] Added ability to locate clickable element by its title. See #5065 by @gimler |
|
25 |
* [Db] Add `waitlock` config option for the database session to wait for lock in Oracle. By @ashnazg. See #5069 |
|
26 |
* [REST] Fixed `seeXmlResponseEquals` by @Voziv |
|
27 |
|
|
28 |
#### 2.4.3 |
|
29 |
|
|
30 |
* [Create your own test formats](https://codeception.com/docs/07-AdvancedUsage#Formats) (e.g., Cept, Cest, ...); by @mlambley |
|
31 |
* [Symfony] Fixed a bug in order to use multiple Kernels; by @alefcastelo |
|
32 |
* [Asserts] Added new methods `assertNotTrue` and `assertNotFalse` methods; by @johannesschobel |
|
33 |
* [REST][PhpBrowser][Frameworks] Added new methods to check for `Http Status Ranges` with nice "wrappers" (e.g., `seeHttpStatusCodeIsSuccessful()` checks the code between 200 and 299); by @johannesschobel |
|
34 |
* Improved the docs; by community |
|
35 |
|
|
36 |
#### 2.4.2 |
|
37 |
|
|
38 |
* Added support for `extends` in the `codeception.yml` and `*.suite.yml` files; by @johannesschobel. |
|
39 |
Allows to inherit current config from a provided file. See example for `functional.suite.yml`: |
|
40 |
|
|
41 |
```yml |
|
42 |
actor: FunctionalTester |
|
43 |
extends: shared.functional.suite.yml |
|
44 |
modules: |
|
45 |
enabled: |
|
46 |
- \App\Modules\X\Tests\Helper\Functional |
|
47 |
``` |
|
48 |
|
|
49 |
* [Yii2] Restore null check for client in Yii2 by @wkritzinger. See #4940 |
|
50 |
* [Yii2] Resetting Yii application in `_after`. By @SamMousa. See #4928 |
|
51 |
* [Yii2] **Breaking** `$settings['configFile']` now supports absolute paths. In you have defined relative path to config in absolute manner |
|
52 |
* [WebDriverIO] Added `deleteSessionSnapshot` by @vi4o |
|
53 |
* [Symfony] Added support for custom kernel names with `kernel_class` config option. By @omnilight. |
|
54 |
* [Asserts] Better exception message for `expectException` by @Slamdunk |
|
55 |
* [REST] Decode all non-arrays to array. See #4946 by @Amunak, fixes #4944. |
|
56 |
* [ZF2] Fixed compatibility with ZF2 ServiceManager by @omnilight. |
|
57 |
* [Laravel5] Fixed memory leak when using Laravel factories inside Codeception. See #4971 by @AdrianSkierniewski |
|
58 |
* [Db] Added support for `null` values in MSSQL driver by @philek |
|
59 |
* Handle absolute paths in ParamsLoader by @SilverFire |
|
60 |
* Fix error on single file test. See #4986 by @mikbox74 |
|
61 |
* Upgraded to Codeception/Stub 2.0 by @Naktibalda, fixed compatibility. |
|
62 |
|
|
63 |
|
|
64 |
#### 2.4.1 |
|
65 |
|
|
66 |
* Fixed "Uncaught Error: Call to undefined method Codeception\Test\Descriptor::getTestDataSetIndex()" error when filtering tests. |
|
67 |
* Better support of PHPUnit warning status by @edno: |
|
68 |
* support PHPUnit addWarning() |
|
69 |
* display 'W' instead of success for warning test cases |
|
70 |
* Fixed Running test with invalid dataprovider by @okneloper. Fixed #4888 by @edno |
|
71 |
* [Yii2] **Request flow and database transactions refactored** (by @sammousa): |
|
72 |
* **Breaking** Application is no longer available in helpers via `$this->getModule('Yii2'')->app`, now you must use `\Yii::$app` everywhere |
|
73 |
* Multiple databases are now supported |
|
74 |
* More reliable application state before and during test execution |
|
75 |
* Fixtures method is now configurable |
|
76 |
* Subset of misconfigurations are now detected and informative messages created |
|
77 |
* Fixed using `$settings['path']` in `Codeception\Configuration::suiteSettings()` on Windows by @olegpro |
|
78 |
(starting with `/`), you must change it. @silverfire |
|
79 |
* [Laravel5] Added Laravel 5.4+ (5.1+ backward compatible) support for `callArtisan` method in Laravel5 module. See #4860 by @mohamed-aiman |
|
80 |
* Fixed #4854: unnecessary escaping in operation arguments logging by @nicholascus |
|
81 |
* Fixed humanizing steps for utf8 strings by @nicholascus. See #4850 |
|
82 |
* Fixed parsing relative urls in `parse_url`. See #4853 by @quantum-x |
|
83 |
|
|
84 |
#### 2.4.0 |
|
85 |
|
|
86 |
* **PHPUnit 7.x compatibility** |
|
87 |
* **Dropped PHP 5.4 and PHP 5.5** support (PHP 5.5 still may work) |
|
88 |
* Internal API refactored: |
|
89 |
* Modern PHP class names used internally |
|
90 |
* Moved PHPUnit related classes to [codeception/phpunit-wrapper](https://github.com/Codeception/phpunit-wrapper) package. |
|
91 |
* Removed `shims` for underscore PHPUnit classes > namespaced PHP classes |
|
92 |
* Cest hooks behavior changed (by @fffilimonov): |
|
93 |
* `_failed` called when test fails |
|
94 |
* `_passed` called when tests is successful |
|
95 |
* `_after` is called for failing and successful tests |
|
96 |
|
|
97 |
**Upgrade Notice**: If you face issues with underscore PHPUnit class names (like PHPUnit_Framework_Assert) you have two options: |
|
98 |
|
|
99 |
* Lock version for PHPUnit in composer.json: "phpunit/phpunit":"^5.0.0" |
|
100 |
* Update your codebase and replace underscore PHPUnit class names to namespaced (PHPUnit 6+ API) |
|
101 |
|