haveHttpHeader enhanced to handle special characters. #4541 by @bnpatel1990suite_namespace config option to suite config. Allows to set custom namespace for tests per suite. #4525 by @pohneanupdateInDatabase method_insertInDatabase to insert record without cleanupbackupConfig when initializing yii2 moduleandWhere instead of where in Yii module's findRecord() by @SamMousa. See #4482amNTLMAuthenticated for NTLM authentication using PhpBrowser. By @TenzianExtension\RunFailed. Added fail-group parameter to customize name of a failed group. By @ maxgorovenko\Codeception\Util\Fixtures::exists() method by @eXorusTestParseException exception message by @gaainf. See #4446init command: create the _generated folder before writing a .gitignore file there by @nstapelbroek. See #4449@dataProvider by @sh41. See #4439Codeception/Verify by @ddinchevassertArraySubset protected across all modules by @guidocellaseeInFormFields by @guidocellaseeInField check options' texts and trimmed texts. By @guidocellasubmitForm to submit inputs in disabled fieldsets. Fixes #4426 by @moebrowneamOnUrl with empty path component. If path component was empty, it used previous url. Fixes #4383 by @NaktibaldawebDriver->getCapabilities() for facebook/php-webdriver < 1.3 (could happen on PHP 5.4, 5.5). Fixes #4435wait accept fractional amount of seconds to wait for less than a second. By @gvlasov$_SERVER global instead of $_ENV. See #4401 by @EricTendianhaveInCollection using __toString. See #4442 by @samusenkoiv@prepare annotation to make realtime configuration for tests in Cest and Test classes. See documentation.Example: disabling Doctrine2 database transaction for a test
<?php
/**@prepare disableTransactions */
function testDoctrine()
{
}
protected function disableTransactions(Doctrine2 $module)
{
$module->_reconfigure(['cleanup' => false]);
}
wait* methods. See Documentationstart option to disable autostart of a browser for tests. (can be useful for Cloud testing setups)_capabilities method for setting desired capabilities in runtime (can be combined with @prepare annotation)_initializeSession and _closeSession can be used in Helpers to start and stop browser manually (combine with start: false config)cleanup configuration option (backward-compatible): (#4379 by @leandrogehlen)
cleanup - to cleanup loaded fixturestransaction - wrap tes into transactionassertStringStartsWith and assertArraySubset by @guidocellaupdateInDatabase method by @eXorus. See #4385$module::$excludeActions property for existence before accessing it. Fixes #4381 by @CactusCoderSymfony::extractRawRoles() failed on security collector (Symfony >= 3.3) #4309 by @Bassterdisable_exception_handling functionality. See #4370. By @janhenkgerritsengrabColumnFromDatabase to fetches values from the column in database. By @RebOOter--coverage, --xml, --html options without parameters (Symfony Console 3.3 compatibility).files section from composer.json (regression from 2.3.2) to avoid unintentionally loading shim files. Fixes Yii migration issue.saveScreenshot allows to save screenshots with no name passed in. See #4263 by @eXorusself-update downloads php5.4 build if php version <7.0. Fixes #4269cleanup: false.dump optional if populator is set. Fixes #4247generate:suite command to create a directory for the suite. Fixes #4251DotReporter introduced. Use it with
codecept run --ext DotReporter
--ext parameter added to load extensions dynamically.
Db Populator Announcement by @brutuscat
[Db] New configuration defaults, cleanups are disabled: cleanup: false, populate: false. Enable them to load dumps between tests.
[Redis] New configuration defaults, cleanups are disabled: cleanupBefore: 'never' by @hchonan
Command generate:phpunit removed.
Bootstrap _bootstrap.php files are disabled by default.
Configuration changes: actor replaced with actor_suffix in global config
Configuration changes: class_name replaced with actor in suite config