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
+43-1Lines changed: 43 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,33 @@ title: Codeception Changelog
7
7
8
8
# Changelog
9
9
10
+
#### 2.2.2
11
+
12
+
* Parameters can be applied to global `codeception.yml` config. See [#3255](https://github.com/Codeception/Codeception/issues/3255) Thanks to **[LeRondPoint](https://github.com/LeRondPoint)**
13
+
* Fixed loading of parameters from `.env.*` files. See [#3224](https://github.com/Codeception/Codeception/issues/3224). By **[smotesko](https://github.com/smotesko)**
14
+
* Better failure diff messages by **[k0pernikus](https://github.com/k0pernikus)**
15
+
* UTF-8 improvements (replaced with custom `ucfirst`, `strtoupper` => `mb_strtoupper`) by **[Naktibalda](https://github.com/Naktibalda)**. See [#3211](https://github.com/Codeception/Codeception/issues/3211)
16
+
* Print execution time of non-successful tests by **[Naktibalda](https://github.com/Naktibalda)**. Fixes [#3274](https://github.com/Codeception/Codeception/issues/3274)
17
+
*[WebDriver][PhpBrowser][Frameworks] Fixed created files on failure. Fixes [#3207](https://github.com/Codeception/Codeception/issues/3207)
18
+
*[Frameworks][PhpBrowser] Adjacent forms submit improvements by **[dizzy7](https://github.com/dizzy7)**. Fixes [#2331](https://github.com/Codeception/Codeception/issues/2331)
19
+
***[WebDriver]** Fixed adjacent `selectOption` with similar options by **[eXorus](https://github.com/eXorus)**. Fixes [#3246](https://github.com/Codeception/Codeception/issues/3246)
20
+
***[DataFactory]** fixed loading factories from relative paths. Fixes [#3208](https://github.com/Codeception/Codeception/issues/3208)
**Test\Unit* Dependencies can pass and receive values the same way as it is done in PHPUnit. Fixes [#3213](https://github.com/Codeception/Codeception/issues/3213)
23
+
***[Symfony]** Fixed failing tests when the profiler is disabled by **[dizzy7](https://github.com/dizzy7)**. See [#3223](https://github.com/Codeception/Codeception/issues/3223)
24
+
***[REST]** Added `Codecepion\Util\HttpCode` util class with HTTP code constants. See [class reference](https://github.com/Codeception/Codeception/blob/2.2/docs/reference/HttpCode.md)
25
+
***[REST]** Support simple key-value format for file uploads. See [#3244](https://github.com/Codeception/Codeception/issues/3244)
26
+
* Bugfix with duplicate instances in the modules container [#3219](https://github.com/Codeception/Codeception/issues/3219) by **[dizzy7](https://github.com/dizzy7)**
27
+
***[REST]** Added `deleteHeader` method by **[Naktibalda](https://github.com/Naktibalda)**. Fixes [#3161](https://github.com/Codeception/Codeception/issues/3161)
28
+
***[Yii1]**`init` part added to avoid conflicts with `WebDriver`
29
+
*`generate:snippets` can accept second parameter to generate snippets from a specific file or folder.
30
+
***[Db]** Added `grabNumRecords` method by **[tocsick](https://github.com/tocsick)**. See [#3175](https://github.com/Codeception/Codeception/issues/3175)
31
+
* Fixed group events fire twice [#3112](https://github.com/Codeception/Codeception/issues/3112). By **[jstaudenmaier](https://github.com/jstaudenmaier)**
32
+
***[ZF2]** Added services part which can be used to `grabServiceFromContainer` when conflicting module is used by **[Naktibalda](https://github.com/Naktibalda)**.
33
+
* Improved Examples to be Traversable; Fixed console output for complex data structures.
34
+
***[Laravel5]** Added `haveBinding`, `haveSingleton`, `haveContextualBinding` and `haveInstance` methods. By **[janhenkgerritsen](https://github.com/janhenkgerritsen)**. See [#2904](https://github.com/Codeception/Codeception/issues/2904).
35
+
*+ changes from 2.1.11
36
+
10
37
#### 2.2.1
11
38
12
39
* PHPUnit 5.4 and PHPUnit/php-code-coverage 4.0 compatibility.
@@ -25,7 +52,10 @@ title: Codeception Changelog
25
52
***Custom Commands** inject your own commands as as simple as extension. [Announcement](http://codeception.com/03-10-2016/even-more-features-of-codeception.html#custom-commands)
26
53
*`codecept dry-run` command added to show scenario steps without executing them.
27
54
**Breaking***[Dbh]** module removed
28
-
**Breaking***[Laravel4]** module removed
55
+
**Breaking***[Laravel4]** module removed. See [#2866](https://github.com/Codeception/Codeception/issues/2866)
56
+
**Breaking***[Laravel5]** Removed `createModel` method, use `have` method instead. See [#2866](https://github.com/Codeception/Codeception/issues/2866)
57
+
**Breaking***[Laravel5]** Removed `makeModel` method. See [#2866](https://github.com/Codeception/Codeception/issues/2866)
58
+
**Breaking***[Laravel5]** Renamed `haveModel` method to `have`. See [#2866](https://github.com/Codeception/Codeception/issues/2866)
29
59
**Breaking***[Symfony]** public property `container` removed
30
60
**Breaking***[Asserts]** removed deprecated `assertLessThen` and `assertGreaterThen`
31
61
**Breaking* mocks created with `Codeception\Util\Stub` are not verified in Cests. See [#3005](https://github.com/Codeception/Codeception/issues/3005)
@@ -34,6 +64,8 @@ title: Codeception Changelog
34
64
***[AngularJS]** module added. Extends WebDriver module for AngularJS testing. [Announcement](http://codeception.com/03-10-2016/even-more-features-of-codeception.html#angularjs)
35
65
***[DataFactory]** module added. Performs data generation using FactoryMuffin library [Announcement](http://codeception.com/03-10-2016/even-more-features-of-codeception.html#datafactory)
36
66
***[Redis]** Module rewritten using Predis library as driver by **[marcverney](https://github.com/marcverney)**
67
+
***[Laravel5]** Added a `haveMultiple` method to create more than one model per call. See [#2866](https://github.com/Codeception/Codeception/issues/2866)
68
+
***[Laravel5]**[Lumen] The `haveRecord`, `seeRecord`, `dontSeeRecord` and `grabRecord` methods now also accept Eloquent model class names instead of only database table names. See [#2866](https://github.com/Codeception/Codeception/issues/2866)
37
69
***[Symfony]** module Symfony2 renamed to Symfony
38
70
***[Phalcon]** Merged `Phalcon1` and `Phalcon2` modules into one `Phalcon` due the fact that Phalcon Framework v1.3.x no longer supported at all
39
71
***[Asserts]** More `assert*` methods from PHPUnit added
@@ -44,8 +76,18 @@ title: Codeception Changelog
44
76
* Deprecation errors won't fail tests but will be printed.
45
77
* Official [Docker image](https://hub.docker.com/r/codeception/codeception/) introduced by **[schmunk42](https://github.com/schmunk42)**
46
78
79
+
#### 2.1.11
80
+
81
+
***[Yii1]** Improved Yii connector. AR metadata is cleaned up between requests. `regenerateId` of session is disabled.
82
+
*[REST][InnerBrowser] redirect is not triggered when Location header is set but response code is not 3xx. By **[Naktibalda](https://github.com/Naktibalda)**. Fixes [#3171](https://github.com/Codeception/Codeception/issues/3171).
83
+
*[PhpBrowser][Frameworks] checkboxes can be located by label by **[dizzy7](https://github.com/dizzy7)**. See [#3237](https://github.com/Codeception/Codeception/issues/3237)
84
+
*[PhpBrowser][Frameworks] field can be matched by its trimmed label value. See [#3209](https://github.com/Codeception/Codeception/issues/3209). By **[dizzy7](https://github.com/dizzy7)**
85
+
***[WebDriver]** fixed URL matching in WebDriver::seeLink
86
+
*[WebDriver][InnerBrowser] Improved error messages of `seeLink` and `dontSeeLink`
87
+
47
88
#### 2.1.10
48
89
90
+
* PHPUnit version locked to <5.4
49
91
***[Db]** Added missing support for LIKE condition to SqlSrv driver
We can use HTTP code constants from `Codeception\Util\HttpCode` instead of numeric values to check response code in `seeResponseCodeIs` and `dontSeeResponseCodeIs` methods.
91
+
90
92
### Testing JSON Responses
91
93
92
94
The last line of the previous example verified that the response contained the provided string. However we shouldn't rely on it, as depending on content formatting we can receive different results with the same data. What we actually need is to check that the response can be parsed and it contains some of the values we expect. In the case of JSON we can use the `seeResponseContainsJson` method
@@ -114,6 +116,7 @@ You may want to perform even more complex assertions on a response. This can be
114
116
115
117
<?php
116
118
namespace Helper;
119
+
117
120
class Api extends \Codeception\Module
118
121
{
119
122
public function seeResponseIsHtml()
@@ -140,6 +143,7 @@ If we expect a JSON response to be received we can check its structure with [JSO
140
143
$I = new ApiTester($scenario);
141
144
$I->wantTo('validate structure of GitHub api responses');
Copy file name to clipboardExpand all lines: docs/12-ParallelExecution.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Codeception does not provide a command like `run-parallel`. There is no common s
19
19
20
20
There are two approaches to achieve parallelization. We can use [Docker](http://docker.com) and run each process inside isolated containers, and have those containers executed simultaneously.
21
21
22
-
<divclass="alert alert-warning">
22
+
<divclass="alert alert-info">
23
23
Docker works really well for isolating testing environments.
24
24
By the time of writing this chapter, we didn't have an awesome tool like it. This chapter demonstrates how to manage parallel execution manually. As you will see we spend too much effort trying to isolate tests which Docker does for free. Today we **recommend using Docker** for parallel testing.
Copy file name to clipboardExpand all lines: docs/modules/DataFactory.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ modules:
63
63
64
64
(you can also use Laravel5 and Phalcon).
65
65
66
-
In this example factories are loaded from `tests/_support/factories` directory.
66
+
In this example factories are loaded from `tests/_support/factories` directory. Please note that this directory is relative from the codeception.yml file (so for Yii2 it would be codeception/_support/factories).
67
67
* You should create this directory manually and create PHP files in it with factories definitions following [official documentation](https://github.com/thephpleague/factory-muffin#usage).
68
68
69
69
In cases you want to use data from database inside your factory definitions you can define them in Helper.
@@ -134,12 +134,11 @@ In case your ORM expects a related record itself (Doctrine) then you should use
134
134
{% endhighlight %}
135
135
136
136
137
-
138
137
### Actions
139
138
140
139
#### have
141
140
142
-
Generates and saves a record,
141
+
Generates and saves a record,.
143
142
144
143
{% highlight php %}
145
144
@@ -152,12 +151,13 @@ Returns an instance of created user.
<p> </p><divclass="alert alert-warning">Module reference is taken from the source code. <ahref="https://github.com/Codeception/Codeception/tree/2.2/src/Codeception/Module/DataFactory.php">Help us to improve documentation. Edit module reference</a></div>
Copy file name to clipboardExpand all lines: docs/modules/Facebook.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,11 @@ To use this module with Composer you need <em>"facebook/php-sdk4": "5.*"</em> pa
19
19
20
20
### Status
21
21
22
-
* Maintainer: **tiger-seo**
22
+
[](https://codeship.com/projects/160201)
0 commit comments