Codeception Versions Save

Full-stack testing PHP framework

5.0.6

1 year ago
  • 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

1 year ago
  • 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

1 year ago
  • 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

1 year ago
  • Fixed passing test result to dependent tests in unit tests (#6580)
  • Fixed TypeError when @coversNothing annotation is used by Slamdunk (#6582)
  • codecept init unit creates tests/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

1 year ago
  • Fixed remote code coverage for namespaced suites (#6533)
  • Fixed data provider in abstract Cest class @p-golovin (#6560)
  • Fixed issue when include groups and test groups empty @geega (#6557)

5.0.1

1 year ago
  • 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

1 year ago
  • Propagate --ext and --override parameters to included test suites (#6536)
  • Fixed false negative message about stecman/symfony-console-completion package (#6541)

5.0.0

1 year ago

5.0.0

Blog post

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 coverage
    • strict_covers_annotation - marks test as risky if it has @covers annotation but executes some other code
    • ignore_deprecated_code - doesn't collect code coverage for code having @deprecated annotation
    • disable_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 and failed 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 and TAP 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 by paths.output)
    • Suite setting class_name (replaced by actor)
    • Global setting actor (replaced by actor_prefix)
  • Configuration::logDir method (replaced by Configuration::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

5.0.0-RC8

1 year ago
  • Deprecated untyped method arguments in Cest format #6521
  • Improved code style of generated files #6522
  • Removed "Powered by PHPUnit" message #6520

5.0.0-RC7

1 year ago
  • Fixed injecting dependencies to actor in Cest and Gherkin formats #6506
  • Variadic parameters can be skipped in dependency injection #6505