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
+54-5Lines changed: 54 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,55 @@ title: Codeception Changelog
7
7
8
8
# Changelog
9
9
10
-
#### 2.0.16
11
-
12
-
* <strong>[REST]</strong> Module usage should not depend on order it was declared. Fixes <ahref="https://github.com/Codeception/Codeception/issues/2100">#2100</a> by <strong><ahref="https://github.com/Naktibalda">@Naktibalda</a></strong>
13
-
* <strong>[Db]</strong> When `populate` is enabled cleanup should happen only if enabled too <ahref="https://github.com/Codeception/Codeception/issues/2148">#2148</a> by <strong><ahref="https://github.com/gammamatrix">@gammamatrix</a></strong>
14
-
* <strong>[Laravel5]</strong> Rewrite of module to fix open issues and other problems *2015-07-09*
10
+
#### 2.1.1
11
+
12
+
* <strong>[WebDriver]</strong> **Upgraded to facebook/webdriver 1.0***2015-07-11*
13
+
WebDriver classes were moved to `Facebook\WebDriver` namespace. Please take that into account when using WebDriver API directly.
14
+
Till 2.2 Codeception will keep non-namespaced aliases of WebDriver classes.
15
+
* Module Reference now contains documentation for hidden API methods which should be used in Helper classes
16
+
* Skipped and Incomplete tests won't fire `test.before` and `test.after` events. For instamce, WebDriver browser with won't be started and Db cleanups won't be executed on skipped tests.
17
+
* Annotations `<strong><a href="https://github.com/skip">@skip</a></strong>` and `<strong><a href="https://github.com/incomplete">@incomplete</a></strong>` enabled in Cest files <ahref="https://github.com/Codeception/Codeception/issues/2131">#2131</a>
18
+
* <strong>[WebDriver]</strong><strong>[PhpBrowser]</strong><strong>[Frameworks]</strong> `_findElements($locator)` method added to use in Helper classes *2015-07-11*
19
+
Now you can use `$this->getModule('WebDriver')->findElements('.user');` in Helpers to match all elements with `user` class using WebDriver module
20
+
* <strong>[PhpBrowser]</strong> Fixed `amOnUrl` method to open absolute URLs.
21
+
* <strong>[PhpBrowser]</strong><strong>[Frameworks]</strong> Fix for `fillField` using values that contain ampersands by <strong><ahref="https://github.com/GawainLynch">@GawainLynch</a></strong> and <strong><ahref="https://github.com/zbateson">@zbateson</a></strong> Issue <ahref="https://github.com/Codeception/Codeception/issues/2132">#2132</a>
22
+
* <strong>[WebDriver]</strong><strong>[PhpBrowser]</strong><strong>[Frameworks]</strong> Fixed missing HTTPS when trying to access protected pages <ahref="https://github.com/Codeception/Codeception/issues/2141">#2141</a>
23
+
24
+
#### 2.1.0
25
+
26
+
* <strong>[Recorder]</strong>(https://github.com/Codeception/Codeception/tree/master/ext#codeceptionextensionrecorder) extension added. Shows acceptance test progress with a recorded slideshow.
27
+
***Updated to Guzzle 6**. Codeception can now work both with Guzzle v5 and Guzzle v6. PhpBrowser chooses right connector depending on Guzzle version installed. By <strong><ahref="https://github.com/davertmik">@davertmik</a></strong> and <strong><ahref="https://github.com/enumag">@enumag</a></strong>
28
+
* Annotations in Cept files.
29
+
Instead of calling `$scenario->skip()`, `$scenario->group('firefox')`, etc, it is recommended to set scenario metadata with annotations `// <strong><a href="https://github.com/skip">@skip</a></strong>`, `// <strong><a href="https://github.com/group">@group</a></strong> firefox`.
30
+
Annotations can be parsed from line or block comments. `$scenario->skip()` and `$scenario->incomplete()` are still valid and can be executed inside conditional statements:
31
+
```
32
+
if (!extension_loaded('xdebug')) $scenario->skip('Xdebug required')
33
+
```
34
+
***PSR-4**: all support classes moved to `tests/_support` by default. Actors, Helpers, PageObjects, StepObjects, GroupObjects to follow PSR-4 naming style. Autoloader implemented by <strong><ahref="https://github.com/splinter89">@splinter89</a></strong>.
35
+
***Dependency Injection**: support classes can be injected into tests. Support classes can be injected into each other too. This happens by implementing method `_inject` and explicitly specifying class names as parameters. Implemented by <strong><ahref="https://github.com/splinter89">@splinter89</a></strong>.
36
+
***Actor classes can be extended**, their generated parts were moved to special traits in `_generated` namespace. Each *Tester class can be updated with custom methods.
37
+
***Module config simplified**: Modules can be configured in `enabled` section of suite config.
38
+
***Conflicts**: module can define conflicts with each other by implementing `_conflicts` method
39
+
***Dependencies**: module can explicitly define dependencies and expect their injection by implementing `_inject` and `_depends` methods and relying on dependency injection container.
40
+
***Current** modules, environment, and test name can be received in scenario. Example: `$scenario->current('env')` returns current environment name. Fixes <ahref="https://github.com/Codeception/Codeception/issues/1251">#1251</a>
41
+
***Environment Matrix**: environments can be merged. Environment configs can be created in `tests/_envs`, environment generator added. Implemented by By <strong><ahref="https://github.com/sjableka">@sjableka</a></strong>. See <ahref="https://github.com/Codeception/Codeception/issues/1747">#1747</a>
42
+
***Custom Printers**: XML, JSON, TAP, Report printers can be redefined in configuration. See <ahref="https://github.com/Codeception/Codeception/issues/1425">#1425</a>
43
+
* <strong>[Db]</strong> Added `reconnect` option for long running tests, which will connect to database before the test and disconnect after. By <strong><ahref="https://github.com/Naktibalda">@Naktibalda</a></strong>
44
+
* Module parts. Actions of modules can be loaded partially in order to disable actions which are not used in current tests. For instance, disable web actions of framework modules in unit testsing.
45
+
***Kohana**, **Symfony1**, **Doctrine1** modules considered deprecated and moved to standalone packages.
46
+
*`shuffle` added to settings. Randomizes order of running tests. See <ahref="https://github.com/Codeception/Codeception/issues/1504">#1504</a>
47
+
* Console output improved: scenario stack traces contain files and lines of fail.
48
+
* <strong>[Doctrine2]</strong><strong>[Symfony2]</strong> `symfony_em_service` config option moved from Doctrine2 to Symfony2 module and renamed to `em_service`*2015-06-03*
49
+
* <strong>[PhpBrowser]</strong><strong>[Frameworks]</strong> Fixed cloning form nodes `Codeception\Lib\InnerBrowser::getFormFromCrawler(): ID XXX already defined`*2015-05-13*
50
+
* <strong>[WebDriver]</strong> session snapshot implemented, allows to store cookies and load them, i.e., to keep user session between testss.
51
+
* <strong>[WebDriver]</strong><strong>[PhpBrowser]</strong><strong>[Frameworks]</strong> Malformed XPath locators wil throw an exception <ahref="https://github.com/Codeception/Codeception/issues/1441">#1441</a>
52
+
*`MODULE_INIT` event is fired before initializing modules <ahref="https://github.com/Codeception/Codeception/issues/1370">#1370</a>
53
+
* Graceful tests termination using `pcntl_signal`. See <ahref="https://github.com/Codeception/Codeception/issues/1286">#1286</a>
54
+
* Group classes renamed to GroupObjects; Base GroupObject class renamed to `Codeception\GroupObject`
55
+
* Official extensions moved to `ext` dir; Base Extension class renamed to `Codeception\Extension`
56
+
* Duplicate environment options won't cause Codeception to run environment tests twice
57
+
* <strong>[Phalcon1]</strong> `haveServiceInDi` method implemented by <strong><ahref="https://github.com/sergeyklay">@sergeyklay</a></strong>
58
+
* <strong>[Db]</strong> `seeNumRecords` method added by <strong><ahref="https://github.com/sergeyklay">@sergeyklay</a></strong>
15
59
16
60
#### 2.0.15
17
61
@@ -122,6 +166,11 @@ Modifications to ensure multiple values get sent correctly.
122
166
* <strong>[Yii2]</strong> Fixed usage of PUT method by <strong><ahref="https://github.com/miroslav">@miroslav</a></strong>-chandler *2015-02-23*
123
167
124
168
169
+
#### 2.1.0
170
+
171
+
* <strong>[WebDriver]</strong> Saving and restoring session snapshots implemented *2015-03-16*
172
+
173
+
125
174
#### 2.0.10
126
175
127
176
***Console Improvement**: better formatting of test progress. Improved displaying of debug messages and PHP Fatal Errors.
@@ -136,4 +136,4 @@ It could be called a BDD framework. All Codeception tests are written in a descr
136
136
137
137
138
138
139
-
***Next Chapter: [GettingStarted >](/docs/02-GettingStarted)**<p> </p><divclass="alert alert-warning">Docs are incomplete? Outdated? Or you just found a typo? <ahref="https://github.com/Codeception/Codeception/tree/2.0/docs">Help us to improve documentation. Edit it on GitHub</a></div>
0 commit comments