Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency codeception/codeception to v5 #619

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 21, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
codeception/codeception (source) ^3.1 -> ^5.0 age adoption passing confidence

Release Notes

Codeception/Codeception (codeception/codeception)

v5.0.11

Compare Source

What's Changed

New Contributors

Full Changelog: Codeception/Codeception@5.0.10...5.0.11

v5.0.10

Compare Source

v5.0.9

Compare Source

  • JUnitReporter: Do not set 'useless' testsuite attribute in strict mode #​6635 by @​gileri
  • Fixed static $defaultName deprecated in _completion command #​6633 by @​dmitryuk
  • Replaced object property assertions removed from PHPUnit 10

v5.0.8

Compare Source

  • Supports PHPUnit 10

v5.0.7

Compare Source

  • Disabled phpcs checks in generated action files #​6621
  • $I->wantTo() no longer changes test title at runtime #​6622
  • Display correct failed step when failures and errors happened during test run #​6623
  • Fixed indentation of step_decorators in config files generated by bootstrap #​6624
  • Enabled Conditional, Retry and tryTo decorators in acceptance suite generated by bootstrap #​6624
  • Improved handling of anonymous classes in parser #​6626

v5.0.6

Compare Source

  • 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

v5.0.5

Compare Source

v5.0.4

Compare Source

  • 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

v5.0.3

Compare Source

v5.0.2

Compare Source

v5.0.1

Compare Source

  • 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)

v5.0.0

Compare Source

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

v4.2.2

Compare Source

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

v4.2.1

Compare Source

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

v4.2.0

Compare Source

  • 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)

v4.1.31

Compare Source

  • 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

v4.1.30

Compare Source

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

v4.1.29

Compare Source

  • 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

v4.1.28

Compare Source

v4.1.27

Compare Source

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

v4.1.26

Compare Source

v4.1.25

Compare Source

v4.1.24

Compare Source

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

v4.1.23

Compare Source

v4.1.22: Security fix

Compare Source

v4.1.21

Compare Source

  • Fix dry-run compatibility with symfony/console 5.3
  • Coverage: Don't attempt to set cookie domain when it is "localhost" #​6210 by @​marcovtwout
  • Coverage: Don't attempt to read cookies while an alert is open #​6211 by @​marcovtwout

v4.1.20

Compare Source

  • Fix compatibility with PHP 7.0

v4.1.19

Compare Source

  • Action file generator supports PHP 8 union types
  • Action file generator generates typehints for method parameters
  • Removed dead code related to DataProviderTestSuite
  • Removed documentation related to Cept format
  • Deprecated generate:cept command
  • Documentation improvements

v4.1.18

Compare Source

  • Fix cleanup of included test directories #​6117 by @​rolandsaven
  • Clean command will not delete .gitkeep files in _output directory #​6118
  • Add line break between opening tag and namespace in generated Cest and Test files #​6072

v4.1.17

Compare Source

  • Fix codecept run suite when suite name matches directory (bug introduced in 4.1.16)
  • codecept run tests is equivalent to codecept run
  • codecept run :filter works without specifying suite #​6105
  • codecept run tests:filter works too

v4.1.16

Compare Source

  • Detect the suite from a test path relative to the current working dir (#​6051)
  • GroupManager: Fixed bug introduced in 4.1.15
  • Show location of warning in error message (#​6090)

v4.1.15

Compare Source

  • GroupManager: Show which group contains a missing file #​5938
  • Ignore . namespace in generators when someone pass path as a class name, e.g. ./foo #​5818
  • Removed "Running with seed" from CLI report (#​6088) by @​eXorus
  • Suggest most similar module in missing module exception #​6079 by @​c33s

v4.1.14

Compare Source

  • Improved compatibility logic for Symfony EventDispatcher

v4.1.13

Compare Source

  • Gherkin: Fixed loading methods from namespaced helper classes #​6057

v4.1.12

Compare Source

v4.1.11: bugfix release

Compare Source

v4.1.9: PHP 8

Compare Source

v4.1.8

Compare Source

v4.1.7: Compatibility with PHPUnit 9.3

Compare Source

v4.1.6: Compatibility with PHPUnit 9.2

Compare Source

v4.1.5

Compare Source

  • Fixed docker images
  • Fixed indentation in generated Actor class, by @​cebe
  • Added addToAssertionCount method to AssertionCounter trait, #​5918 by @​Archanium

v4.1.4: Another build return type bugfix

Compare Source

  • Build: Fix bug with void type not being picked up correctly #​5880 by @​Jamesking56
  • Test --report flag (the bugfix in phpunit-wrapper library)

v4.1.3: Build command: return type hint improvements

Compare Source

  • Build: Use non-deprecated method to get return type hint on PHP 7.1+ #​5876
  • Build: Ensure that the return keyword is not used when method returns void type #​5878 by @​Jamesking56

v4.1.2: Bugfixes

Compare Source

v4.1.1: Minor improvements

Compare Source

v4.1.0: Support PHPUnit 9.0

Compare Source

v4.0.3: Fixed command autocompletion

Compare Source

v4.0.2

Compare Source

  • Fixed errors in bootstrap scripts #​5806

v4.0.1: Bugfix release

Compare Source

  • Fixed error reporting error in upgrade4 script
  • Symfony 5 compatibility: Improved detection of event-dispatcher version

v4.0.0: First release without modules

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate
Copy link
Contributor Author

renovate bot commented Sep 21, 2023

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: api/composer.lock
Command failed: docker run --rm --name=renovate_a_sidecar --label=renovate_a_child --memory=3584m -v "/tmp/worker/c9b204/1ebf60/repos/github/jelhan/croodle":"/tmp/worker/c9b204/1ebf60/repos/github/jelhan/croodle" -v "/tmp/worker/c9b204/1ebf60/cache":"/tmp/worker/c9b204/1ebf60/cache" -e COMPOSER_CACHE_DIR -e COMPOSER_AUTH -e CONTAINERBASE_CACHE_DIR -w "/tmp/worker/c9b204/1ebf60/repos/github/jelhan/croodle/api" ghcr.io/containerbase/sidecar:9.20.2 bash -l -c "install-tool php 7.2.0 && install-tool composer 2.6.3 && composer update codeception/codeception:5.0.11 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins"

@jelhan
Copy link
Owner

jelhan commented Oct 15, 2023

Will modernize API later

@jelhan jelhan closed this Oct 15, 2023
@renovate
Copy link
Contributor Author

renovate bot commented Oct 15, 2023

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 5.x releases. But if you manually upgrade to 5.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/codeception-codeception-5.x branch October 15, 2023 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant