Codeception

Full-stack testing PHP framework

MIT License

Downloads
65.4M
Stars
4.7K
Committers
779

Bot releases are hidden (Show)

Codeception - 5.0.0-RC7

Published by Naktibalda about 2 years ago

  • Fixed injecting dependencies to actor in Cest and Gherkin formats #6506
  • Variadic parameters can be skipped in dependency injection #6505
Codeception - 5.0.0-RC6

Published by Naktibalda over 2 years ago

  • Added new attributes (Prepare, Env, BeforeClass,AfterClass, Given, When, Then)
  • Class level attributes are applied to all methods
  • Codeception attributes are supported in unit tests
  • Cest format can use data providers from other classes
Codeception - 5.0.0-RC5

Published by Naktibalda over 2 years ago

  • Substitute invalid UTF-8 characters in debug and step output by @SamoylenkoSU (#6483)
Codeception - 5.0.0-RC4

Published by Naktibalda over 2 years ago

  • Implemented basic attribute support (#6449) by @DavertMik
  • Significantly reduced dependencies on PHPUnit
  • Replaced PHPUnit\Framework\TestResult with ResultAggregator
  • Added assertionCount method to ResultAggregator
  • DotReporter prints standard result summary (#6441) by @Orchestrator404
  • Fixed DotReporter output format
  • Fixed fetching remote code coverage data (#6448)
  • Loading .env file must not override existing environment variables (#6477)
  • All changes from 4.2.0 and 4.2.1:
    • Improved multi-application experience, allow filtering suites by name (#6435) by @calvinalkan
    • Configuration override is passed to included suites (#5978) by @calvinalkan
    • Made dry-run command work with module methods having return types (#6470)
    • Support for expectError/Warning/Notice/Deprecation methods in unit tests (Requires PHPUnit 8.4+)
    • Implemented new setting convert_deprecations_to_exceptions (#6469)
    • Action file generator: Do not return when return type is never (#6462)
    • Execute setupBeforeClass/tearDownAfterClass only once (#6481)
Codeception - 4.2.1

Published by Naktibalda over 2 years ago

  • Execute setupBeforeClass/tearDownAfterClass only once (#6481)
  • Handle action with intersection return type correctly in dry-run command
Codeception - 4.2.0

Published by Naktibalda over 2 years ago

  • Improved multi-application experience, allow filtering suites by name (#6435) by @calvinalkan
  • Configuration override is passed to included suites (#5978) by @calvinalkan
  • Made dry-run command work with module methods having return types (#6470)
  • Support for expectError/Warning/Notice/Deprecation methods in unit tests (Requires PHPUnit 8.4+)
  • Implemented new setting convert_deprecations_to_exceptions (#6469)
  • Action file generator: Do not return when return type is never (#6462)
  • Backported test.useless event from Codeception 5.0 (#6459)
Codeception - 5.0.0-RC3

Published by Naktibalda over 2 years ago

  • Fix incorrect type declaration in InitTemplate by @ziadoz
  • Stricter check for phpdotenv v5 (older versions are not supported)
  • Throw exception if actor setting is missing in suite configuration
  • Use correct types in ParamsLoader and Configuration classes, avoid type errors
Codeception - 5.0.0-RC2

Published by Naktibalda over 2 years ago

  • Added --shard, --grep, --filter options (#6399)
  • Added new code coverage settings (#6423)
  • Dynamic configuration with parameters can use arrays and other non-string types (#6409)
  • Introduced codecept_pause function and $this->pause() in unit tests (#6387)
  • Interactive console is executed in the scope of paused test class.
  • Array of variables can be passed to all pause functions/methods
  • Replaced Hoa Console with PsySH in codecept console
  • Used Symfony VarDumper in codecept_debug (#6406)
  • Fixed type error in code coverage exclude filter by @W0rma
  • Fix type error in Recorder extension
Codeception - 5.0.0-RC1

Published by Naktibalda over 2 years ago

  • Use PHPUnit 9 until PHPUnit 10 is released.
  • Read about earlier change in CHANGELOG.
Codeception - 4.1.31

Published by Naktibalda over 2 years ago

  • RunBefore extension prints error output and stops execution if command failed
  • Action file generator: Fixed handling of intersection types
  • Action file generator: Fixed handling of self and parent types
Codeception - 5.0.0-alpha3

Published by Naktibalda over 2 years ago

  • Support intersection types in actions
  • Introduced PSR-12 code style
  • Extracted some code to modules and shared libs
  • Fixed new incompatibilities with PHPUnit 10
Codeception - 4.1.30

Published by Naktibalda over 2 years ago

  • Fix handling of previous exception in ExtensionException
  • Improved parser fix for PHP keywords as named parameters
  • Add link to https://helpukrainewin.org
Codeception - 5.0.0-alpha2

Published by Naktibalda over 2 years ago

  • Generators create namespaced test suites by default (#6071) by @DavertMik
  • Test can be filtered by data provider case number or name (#6363) by @Naktibalda
  • Removed generate:cept command (Cept format is deprecated)
  • Removed settings disallow_test_output and log_incomplete_skipped.
  • Removed setting paths.log (it was replaced by paths.output in Codeception 2.3)
  • Removed suite setting class_name (replaced by actor in Codeception 2.3)
  • Removed global setting actor (replaced by actor_prefix in Codeception 2.3)
  • Removed Configuration::logDir method (replaced by Configuration::logDir in 2.0)
  • ParamLoader throws exception if xml file is used but simplexml extension is missing (#6346) by @mdoelker
  • Updated codebase to use PHP 8.0 features by @TavoNiievez
  • Don't report test as useless if it failed (fixed bug introduced in alpha1)
  • Don't report local test coverage for remote suites (fixed bug introduced in alpha1)
  • Moved XmlBuilder class to module-soap
Codeception - 5.0.0-alpha1

Published by Naktibalda over 2 years ago

  • Decoupled test execution and reporting from PHPUnit
  • Custom reporters implementing TestListener are no longer supported and must be converted to Extensions
  • Tests of all formats are reported as useless if they perform no assertions and reports_useless_tests setting is enabled
  • Added path_coverage setting to enable path and branch coverage #6158 by @s0lus
  • Added optional value to fail-fast option (#6275) by @Verest
  • Removed JSON and TAP loggers
  • Removed code coverage blacklist functionality
  • Removed deprecated class aliases
    • Codeception\TestCase\Test
    • Codeception\Platform\Group
    • Codeception\Platform\Group
    • Codeception\TestCase
  • Removed settings disallow_test_output, log_incomplete_skipped and report_useless_tests
  • Introduced strict types in the code base by @TavoNiievez
  • Compatible with PHPUnit 10 only
  • Compatible with Symfony 4.4 - 6.0
  • Requires PHP 8.0 or higher
Codeception - 4.1.29

Published by Naktibalda over 2 years ago

  • Fixed duplicate test runs when codeception.yml and codeception.dist.yml are present in multi-app setup by @calvinalkan
  • Action generator handles mixed type correctly
  • Parser fix to allow named parameters named class and namespace
Codeception - 4.1.28

Published by Naktibalda almost 3 years ago

  • Strictly compare test hashes to avoid skipping tests #6320 by @michel-cetina
  • Fixed deprecation message in codecept build #6311 by @barmax
Codeception - 4.1.27

Published by Naktibalda almost 3 years ago

  • Renamed editorUrl setting to editor_url for consistency
  • Fixed wildcard matching of group files (#6302) by @DavertMik
Codeception - 4.1.26

Published by Naktibalda almost 3 years ago

  • Added editorUrl setting to codeception.yml (#6261) by @ThomasLandauer
  • Reverted optional value to fail-fast option because it was breaking change (#6290)
  • Fixed E_DEPRECATED warnings in Example class on PHP 8.1 (#6298) by @fabacino
Codeception - 4.1.25

Published by TavoNiievez almost 3 years ago

Codeception -

Published by DavertMik almost 3 years ago

  • Fixed running tests from group files in included configs (#6292) by @DavertMik

In this example, tests listed in slow.txt will be executed from backend/tests and frontend/tests:

# included configs
include:
  - backend/tests
  - frontend/tests

# groups defined in files
groups:
  slow: slow.txt