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
+38-5Lines changed: 38 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,18 +7,51 @@ title: Codeception Changelog
7
7
8
8
# Changelog
9
9
10
-
#### 2.2.5
10
+
#### 2.2.6 (October 2016)
11
+
12
+
* Ability to update config on run with `--override` (`-o`) option. Usage Examples:
13
+
*`codecept run -o "settings: shuffle: true"`: enable shuffle
14
+
*`codecept run -o "settings: lint: false"`: disable linting
15
+
***[WebDriver]****HTML report to include screenshots of failed tests.** See [#3602](https://github.com/Codeception/Codeception/issues/3602)
16
+
*[PhpBrowser][Frameworks] HTML report to include HTML of failed tests. See [#3602](https://github.com/Codeception/Codeception/issues/3602)
17
+
***[Apc]****Module added** to interact with the Alternative PHP Cache (APC) using either APCu or APC extension. By **[sergeyklay](https://github.com/sergeyklay)**
18
+
***[Laravel5]** Add `run_database_seeder` configuration option. See [#3625](https://github.com/Codeception/Codeception/issues/3625) and [#3630](https://github.com/Codeception/Codeception/issues/3630). By **[Bouhnosaure](https://github.com/Bouhnosaure)**
19
+
***[Laravel5]** Add `database_migrations_path` configuration option. See [#3628](https://github.com/Codeception/Codeception/issues/3628). By **[janhenkgerritsen](https://github.com/janhenkgerritsen)**
20
+
*[Laravel5][Lumen] Fixed issue that caused the `have` and `haveMultiple` methods not being available when using the ORM part of the modules. See [#3587](https://github.com/Codeception/Codeception/issues/3587). By **[janhenkgerritsen](https://github.com/janhenkgerritsen)**
21
+
*[PhpBrowser][Frameworks] Fixed clicking on a button inside the link
22
+
*[PhpBrowser][Frameworks] Click on the first clickable item when clickBySelector is used
23
+
*[PhpBrowser][Frameworks] Anchor is no longer sent to server
24
+
* Removed tags from `see`/`dontSee` output and friends output
25
+
*`--` separates options from arguments in `codecept run` by **[Naktibalda](https://github.com/Naktibalda)**. Fixes [#3614](https://github.com/Codeception/Codeception/issues/3614). See [#3615](https://github.com/Codeception/Codeception/issues/3615)
26
+
* Fixed terminating run process with Ctrl-C for PHP 7.0. Disabled graceful termination
27
+
***[Yii2]** fixed Yii2 logging complex data by **[svoboda2010](https://github.com/svoboda2010)** Fixes [#3452](https://github.com/Codeception/Codeception/issues/3452)
28
+
***[Yii2]**`cleanup` set to true by default (as it was documented but not enabled).
29
+
***[Yii2]** Close db connections when running `haveFixtures` by **[Ni](https://github.com/Ni)**-san. Fixes [#3456](https://github.com/Codeception/Codeception/issues/3456). See [#3586](https://github.com/Codeception/Codeception/issues/3586)
30
+
***[Yii2]** Fixed loading fixtures from `_fixtures` method in testcase by **[iRipVanWinkle](https://github.com/iRipVanWinkle)**. See [#3565](https://github.com/Codeception/Codeception/issues/3565)
31
+
***[MongoDb]** Added support for [mongofill](https://github.com/mongofill/mongofill), an alternative Mongo client in pure PHP. By **[hlogeon](https://github.com/hlogeon)** at [#3641](https://github.com/Codeception/Codeception/issues/3641)
32
+
***[MongoDb]** Fixed data import using mongotype dump type by **[hlogeon](https://github.com/hlogeon)**[#3637](https://github.com/Codeception/Codeception/issues/3637)
33
+
* Fixed [#3392](https://github.com/Codeception/Codeception/issues/3392) by normalizing namespace loading classes in DI getterby **[Mitrichius](https://github.com/Mitrichius)** at [#3633](https://github.com/Codeception/Codeception/issues/3633)
34
+
***[Symfony]** Fixed [#3608](https://github.com/Codeception/Codeception/issues/3608)`[PHPUnit_Framework_Exception] implode()` while printing debug for security roles by **[Prazmok](https://github.com/Prazmok)**.
35
+
***[Yii1]** Fix domain regex [#3581](https://github.com/Codeception/Codeception/issues/3581) to return correct value by **[amashigeseiji](https://github.com/amashigeseiji)** See [#3597](https://github.com/Codeception/Codeception/issues/3597)
36
+
***[WebDriver]** Improved tests stability when Selenium server is gone [#3534](https://github.com/Codeception/Codeception/issues/3534) by **[eXorus](https://github.com/eXorus)**. Fixes [#3531](https://github.com/Codeception/Codeception/issues/3531)
37
+
***[WebDriver]** Tests are errored when Selenium server can't be connected. See [#3603](https://github.com/Codeception/Codeception/issues/3603)
38
+
* MetaSteps are printed even with disabled xdebug by **[niclopez](https://github.com/niclopez)**. See [#3600](https://github.com/Codeception/Codeception/issues/3600)
39
+
***[WebDriver]** submit button in `submitForm` can be located by name or strict locator by **[imjoehaines](https://github.com/imjoehaines)**. See [#3560](https://github.com/Codeception/Codeception/issues/3560)
40
+
*[SOAP][REST] removed module conflict by **[eXorus](https://github.com/eXorus)**.
41
+
* Fixed [#3571](https://github.com/Codeception/Codeception/issues/3571): error handler to call `registerDeprecationErrorHandler` method and `register_shutdown_function` on first SuiteEvent only. By **[positronium](https://github.com/positronium)**. See [#3572](https://github.com/Codeception/Codeception/issues/3572)
42
+
43
+
#### 2.2.5 (September 2016)
11
44
12
45
* Support for PhpUnit 5.x.
13
-
***[Lumen]** Major refactoring of Lumen module. See [#3533](https://github.com/Codeception/Codeception/pull/3533). By **[janhenkgerritsen](https://github.com/janhenkgerritsen)**
46
+
***[Lumen]** Major refactoring of Lumen module. See [#3533](https://github.com/Codeception/Codeception/issues/3533). By **[janhenkgerritsen](https://github.com/janhenkgerritsen)**
14
47
***[Laravel5]** Removed calls to `Auth::logout()`, `Session::flush()` and `Cache::flush()` from after hook. See [#3493](https://github.com/Codeception/Codeception/issues/3493). By **[janhenkgerritsen](https://github.com/janhenkgerritsen)**
15
48
***[Memcache]** Updated `Memcache::seeInMemcached` to check if the key exists alone or with the desired value. By **[sergeyklay](https://github.com/sergeyklay)**
16
49
***[Memcache]** Added `Memcache::haveInMemcached`. By **[sergeyklay](https://github.com/sergeyklay)**
17
50
***[Memcache]** Fixed `Memcache::dontSeeInMemcached`. By **[sergeyklay](https://github.com/sergeyklay)**
18
51
***[ZF2]** Zend Framework 3 Support. Made `init_autoloader` optional, because ZF3 uses composer for autoloading [#3525](https://github.com/Codeception/Codeception/issues/3525). By **[Naktibalda](https://github.com/Naktibalda)**
19
52
***[ZF2]** Fixed accessing Doctrine Entity Manager when client is not initialized. By **[chris1312](https://github.com/chris1312)**. See [#3524](https://github.com/Codeception/Codeception/issues/3524)
20
53
***[Yii2]** Allow to load fixtures from `_fixtures` method of a testcase. [See reference](http://codeception.com/docs/modules/Yii2#Fixtures). Fixes usage of nested transactions [#3520](https://github.com/Codeception/Codeception/issues/3520). By **[kalyabin](https://github.com/kalyabin)** and **[davertmik](https://github.com/davertmik)**
21
-
***[Yii1]** Fix private property accessible; allows to change urlManager class to subclass of CUrlManager. See **[#3287](https://github.com/Codeception/Codeception/issues/3287)**. By **[amashigeseiji](https://github.com/amashigeseiji)**
54
+
***[Yii1]** Fix private property accessible; allows to change urlManager class to subclass of CUrlManager. See **[3287](https://github.com/3287)**. By **[amashigeseiji](https://github.com/amashigeseiji)**
22
55
* Escaped tags in debug output by **[Naktibalda](https://github.com/Naktibalda)**. See [#3507](https://github.com/Codeception/Codeception/issues/3507). Fixes [#3495](https://github.com/Codeception/Codeception/issues/3495)
23
56
* Fixed [#3410](https://github.com/Codeception/Codeception/issues/3410): Wrong subSteps rendering in HTML ResultPrinter by **[niclopez](https://github.com/niclopez)**
24
57
***[WebDriver]** Improved exception message thrown when click('name') does not match any element [#3546](https://github.com/Codeception/Codeception/issues/3546) by **[Naktibalda](https://github.com/Naktibalda)**. Fixes [#3528](https://github.com/Codeception/Codeception/issues/3528)
@@ -37,7 +70,7 @@ title: Codeception Changelog
37
70
* Fixed [#3433](https://github.com/Codeception/Codeception/issues/3433) detection of relative path when `codeception.yml` is not in project root. See [#3434](https://github.com/Codeception/Codeception/issues/3434). By **[loren](https://github.com/loren)**-osborn
38
71
* Handle deprecation messages according to `error_level` setting [#3460](https://github.com/Codeception/Codeception/issues/3460). Fixes [#3424](https://github.com/Codeception/Codeception/issues/3424). By **[Naktibalda](https://github.com/Naktibalda)**.
39
72
40
-
#### 2.2.4
73
+
#### 2.2.4 (August 2016)
41
74
42
75
* Improved using complex params, nested params can be set using dot (`.`). See [#3339](https://github.com/Codeception/Codeception/issues/3339)
43
76
***[Yii2]** Mailer mock is now configured with options that make sense for it. Fixes [#3382](https://github.com/Codeception/Codeception/issues/3382)
@@ -56,7 +89,7 @@ title: Codeception Changelog
56
89
***[Db]** Error is thrown if SQLite memory is used. [#3319](https://github.com/Codeception/Codeception/issues/3319)
57
90
***[Frameworks]**`REQUEST_TIME` server variable to be set on request. By **[gimler](https://github.com/gimler)**. Fixes [#3374](https://github.com/Codeception/Codeception/issues/3374)
58
91
59
-
#### 2.2.3
92
+
#### 2.2.3 (July 2016)
60
93
61
94
***[Yii2]** Improvements:
62
95
* Added `init` part to initialize Yii app for unit and acceptance testing.
Copy file name to clipboardExpand all lines: docs/08-Customization.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,14 @@ php codecept run
68
68
69
69
This will launch test suites for all 3 applications and merge the reports from all of them. Basically that would be very useful when you run your tests on Continuous Integration server and you want to get one report in JUnit and HTML format. Codecoverage report will be merged too.
70
70
71
-
If your applications uses same helpers, follow the next section of this chapter.
71
+
If you want to run specific suite from application you can execute:
72
+
73
+
{% highlight php %}
74
+
codecept run unit -c frontend
75
+
76
+
{% endhighlight %}
77
+
Where `unit` is the name of suite and with `-c` you can specify path to `codeception.yml` config to use. In this example we assume that there is `frontend/codeception.yml` config and we execute unit tests only for that app.
Checks item in APC(u) exists and the same as expected.
117
+
118
+
Examples:
119
+
120
+
{% highlight php %}
121
+
122
+
<?php
123
+
// With only one argument, only checks the key exists
124
+
$I->seeInApc('users_count');
125
+
126
+
// Checks a 'users_count' exists and has the value 200
127
+
$I->seeInApc('users_count', 200);
128
+
?>
129
+
130
+
{% endhighlight %}
131
+
132
+
*`param string|string[]` $key
133
+
*`param mixed` $value
134
+
135
+
<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/Apc.php">Help us to improve documentation. Edit module reference</a></div>
0 commit comments