Skip to content

Codeception 5.0 #6067

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

Merged
merged 123 commits into from
Jan 2, 2021
Merged

Codeception 5.0 #6067

merged 123 commits into from
Jan 2, 2021

Conversation

Naktibalda
Copy link
Member

@Naktibalda Naktibalda commented Dec 28, 2020

  • Merge the latest branch of phpunit-wrapper back to Codeception/Codeception
  • Merge "Improved compatibility with PHPUnit 7+" changes made in codeception/codeception and phpunit-wrapper repos.
  • Remove some old PHPUnit compatibility hacks
  • Remove support for Symfony 3 (raise the lowest supported version to 4.4)
  • Remove support for old versions of php-dotenv 2 and 3 (possibly 4 too).
  • Remove support for codeception/stub v2
  • Upgrade to the latest major versions of the following dependencies:
    • codeception/specify 0.* to 1.* Removed dependency instead because it wasn't used by tests
    • monolog/monolog 1.* to 2.* (used by ext/Logger.php) Removed dependency instead because Logger has no tests.
    • squizlabs/php_codesniffer 2.* to 3.* Removed because it wasn't part of CI and code style wasn't enforced. It can be readded latter.
  • Delete deprecated code
  • Review all phpunit-wrapper code in src/PHPUnit/.
  • Run tests of require-dev modules in Github Actions (this change will be backported to 4.1)
  • Make codeception/stub compatible with PHPUnit 10.
  • Update files in src/PHPUnit/NonFinal directory with the latest revision of their counterparts in PHPUnit (the only difference was that they have no final keyword, because some Codeception classes extend them).
  • Make it work with PHPUnit 10 after final release.
  • Check how much work it is to make with PHPUnit 9. Support it if it is simple (e.g. a few version or method_exists conditions).
  • Repeat this process with PHPUnit 8.

There are so many commits in this pull request because I merged entire commit history of phpunit wrapper using git merge --allow-unrelated-histories
Source: https://www.w3docs.com/snippets/git/how-to-merge-two-git-repositories.html

DavertMik and others added 30 commits February 18, 2018 17:05
Fixes Codeception#4

- replace use of Descriptor::getTestSignature with Descriptor::getTestSignatureUnique
…ion#3)

Example: codecept run tests/acceptance/FirstCest.php:frontpageWorks#0
…ption#16)

Fix Codeception#15

- change exception to instance of ExpectationFailedException
Fix bug
Warning: Declaration of Codeception\PHPUnit\ResultPrinter\UI::printDefect(PHPUnit\Framework\TestFailure $defect, $count): void should be compatible with PHPUnit\TextUI\ResultPrinter::printDefect(PHPUnit\Framework\TestFailure $defect, int $count): void
Because Codeception#23 and Codeception#25 makes wrapper incompatible with phpunit 7.0
Mysql and Postgres require adding too many additional dependencies to build for little benefit
@Naktibalda
Copy link
Member Author

phpunit-wrapper runs module-asserts tests because PHPUnit removes or changes some assertions in breaking way in every major release.
I added running tests of other modules because they are already there, so it is a small change, and I hope that they will prevent us from breaking some module related functionality.
They can be removed later if build process takes too long.

@Naktibalda Naktibalda changed the title WIP: Codeception 5.0 Codeception 5.0 Dec 31, 2020
@Naktibalda
Copy link
Member Author

I think that this branch can be merged now to allow other people to contribute to 5.0.
PHPUnit 10 is a moving target and PHPUnit10 support won't be complete until 10.0.0 is released on 5th of February.
I will open another pull request for PHPUnit 10.

@DavertMik
Copy link
Member

I think that this branch can be merged now to allow other people to contribute to 5.0.

Absolutely agree!
Going to clone it now

@ThomasLandauer
Copy link
Member

One more TODO: Remove Cept format completely, see #6144 (comment)

@ThomasLandauer ThomasLandauer mentioned this pull request Mar 16, 2021
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.