Releases: Codeception/Codeception
Releases · Codeception/Codeception
5.0.6
- Fixed
canSee
assertions in Unit format #6610 tryTo
methods must return boolean result #6614- Fixed various issues with handling of
@skip
and@incomplete
annotations and attributes in Cest format #6617 - Stopped adding
__mocked
field to mocks created by Stub library #6620 - Fixed deprecated string syntax in Run command #6618 by @shtiher-pp
5.0.5
- Don't disable test shuffling when --shard option is used (#6605)
- Provided typed signatures for attributes (#6600) by @mdoelker
- Support for Attributes in generated Actions files (#6593) by @yesdevnull
- Fixed expectNotToPerformAssertions in unit tests (#6602) by @yesdevnull
5.0.4
- Execute FailFast subscriber before module _failed hooks #6586 by @yesdevnull
- Fixed parsing of @Skip annotation #6596
- Undeprecated untyped method arguments in Cest format #6591
- Removed unnecessary overrides of $resultAggregator property in Unit format and TestCaseWrapper #6590
- Print failure/error/warning/skipped/incomplete messages in HTML reports #6595
- Fixed counting of successful tests #6595
5.0.3
- Fixed passing test result to dependent tests in unit tests (#6580)
- Fixed
TypeError
when @coversNothing annotation is used by Slamdunk (#6582) codecept init unit
createstests/Support
directory (#6578)- Fixed phar file url in
self-update
command by @voku (#6563) - Added message how to exit Codeception console by @ThomasLandauer (#6561)
- Improved compatibility with PHPUnit 10
5.0.2
5.0.1
- Propagate --ext and --override parameters to included test suites by @calvinalkan (#6536)
- Fixed false negative message about stecman/symfony-console-completion package by @geega (#6541)
- Fixed a number of issues in template functionality (#6552)
- Fixed DataProvider, to properly load dataProviders from abstract classes by @Basster (#6549)
4.2.2
5.0.0
5.0.0
Summary of all differences from Codeception 4
Added
- Basic attribute support
--shard
,--grep
,--filter
options- Test can be filtered by data provider case number or name
- Tests of all formats are reported as useless if they perform no assertions and
reports_useless_tests
setting is enabled - Array of variables can be passed to all
pause
functions/methods - Dynamic configuration with parameters can use arrays and other non-string types (#6409)
codecept_pause
function and$this->pause()
in unit tests (#6387)- Interactive console is executed in the scope of paused test class.
- New code coverage settings:
path_coverage
- enables path and branch coveragestrict_covers_annotation
- marks test as risky if it has@covers
annotation but executes some other codeignore_deprecated_code
- doesn't collect code coverage for code having@deprecated
annotationdisable_code_coverage_ignore
- ignores@codeCoverageIgnore
,@codeCoverageIgnoreStart
and@codeCoverageIgnoreEnd
annotations
- Optional value to
fail-fast
option - Dynamic configuration with parameters can use arrays and other non-string types
Changed
- PHPUnit is no longer the engine of Codeception, but TestCase format is still supported and assertions are still used
- Generators create namespaced test suites by default
- Replaced Hoa Console with PsySH in
codecept console
- Used Symfony VarDumper in
codecept_debug
- Fixed DotReporter output format
- Module
after
andfailed
hooks are executed in reverse order - Introduced strict typing and other features of PHP 7 and 8.
- Cest format can use data providers from other classes
- Fixed injecting dependencies to actor in Cest and Gherkin formats #6506
- Variadic parameters can be skipped in dependency injection #6505
- Deprecated untyped method arguments in Cest format #6521
Removed
JSON
andTAP
report formats- Code coverage blacklist functionality
generate:cept
command (Cept
format itself is deprecated)- Deprecated class aliases:
- Codeception\TestCase\Test
- Codeception\Platform\Group
- Codeception\Platform\Group
- Codeception\TestCase
- Settings
log_incomplete_skipped
paths.log
(replaced bypaths.output
)- Suite setting
class_name
(replaced byactor
) - Global setting
actor
(replaced byactor_prefix
)
Configuration::logDir
method (replaced byConfiguration::outputDir
in 2.0)- Custom reporters implementing TestListener are no longer supported and must be converted to Extensions
Supported versions
- PHP 8
- PHPUnit 9 (prepared for upcoming PHPUnit 10)
- Symfony 4.4 - 6.x