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

support codeception v4 #39

Closed
wants to merge 1 commit into from
Closed

Conversation

jelhan
Copy link
Contributor

@jelhan jelhan commented Jan 18, 2020

This is a breaking change. It drops support for

  • codeception 3.x
  • PHP < 7.2
  • PHPUnit 5.x

Closes #38

Drops support for
- codeception 3.x
- PHP < 7.2
- PHPUnit 5.x
@@ -9,12 +9,14 @@ Codeception extension to start and stop PHP built-in web server for your tests.
| **Codeception 2.0** | **1.2.x** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=v1.2.x)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
| **Codeception 2.1, 2.2** | **1.3.x** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=v1.3.x)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
| **Codeception 2.3** | **1.4.x** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=v1.4.x)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
| **Codeception 3.0** | **master** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=master)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
| **Codeception 3.0** | **1.5.x** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=v1.5.x)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 1.5.x branch does not exist yet. It needs to be created.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but somehow 1.5.0 tag exists since september of 2019

"php": ">=5.6.0",
"codeception/codeception": "^3.0"
"php": ">=7.2.0",
"codeception/codeception": "^4.0"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since you never changed any code I presume that it is compatible with codeception 3.0, so ^3.0.0 | ^4.0.0 would be good

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"codeception/codeception": "^4.0"
"codeception/codeception": "^3.0 || ^4.0"

I think this decision is up to @tiger-seo cause it's mainly about the support commitment. It seems to currently work with both versions but this may increase maintenance costs or require another major release later. Added it as a suggestion so that tiger-seo can decide to apply or not before merging.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, if they break compatibility, then according to SEMVER they have to bump major, but since major is locked from version 3.x.x to 4.x.x then it should not be a problem

@jelhan
Copy link
Contributor Author

jelhan commented May 16, 2020

@tiger-seo Any chance to get this one merged?

@tiger-seo
Copy link
Owner

@jelhan sorry for not responding; why do u suggest to drop codeception 3.0 and bump major version of this extension ?

@jelhan
Copy link
Contributor Author

jelhan commented Jun 6, 2020

@jelhan sorry for not responding; why do u suggest to drop codeception 3.0 and bump major version of this extension ?

Mostly two reasons if I recall correctly:

  1. All supported combinations should be covered by tests. The current setup does not support running the tests against multiple versions of codeception. And I was too lazy to set that up myself.
  2. Supporting multiple versions at the same time increases maintenance costs. I think in that case it's better to focus the limited resources.

But at the end of the day that decision is up to you.

@gimler
Copy link
Contributor

gimler commented Aug 11, 2020

@tiger-seo any update?

+1 for drop support for legacy codeception/php version

I think when someone use a old codeception version he can use a specific branch like described in the readme

@airdrummingfool
Copy link
Contributor

It would be great to see this PR (or #43) merged, but until that happens I am using the code from this PR via a workaround in composer.json:

change the require line to:

"codeception/phpbuiltinserver": "dev-codeception-4",

add:

    "repositories": [
      {
        "type": "vcs",
        "url": "https://github.com/jelhan/PhpBuiltinServer"
      }
    ],

This overrides the PHPBuiltinServer from Packagist with @jelhan's fork, and pulls the codeception-4 branch.

Ref:

@gimler
Copy link
Contributor

gimler commented Feb 21, 2022

@tiger-seo any update here for support codeception v4?

@Mte90
Copy link

Mte90 commented Sep 8, 2022

Ping for this PR!

@Mte90
Copy link

Mte90 commented Sep 8, 2022

I see with php 8.1 some issues:

PHP Warning:  proc_open(): Unable to copy file descriptor 7 (for pipe) into file descriptor 1: Bad file descriptor
PHP Warning:  proc_open(): Unable to copy file descriptor 8 (for pipe) into file descriptor 1: Bad file descriptor

@xepozz
Copy link

xepozz commented Nov 1, 2022

any updates here?

@mikk150
Copy link

mikk150 commented Nov 4, 2022

any updates here?

master branch already supports codeception 4

@jelhan
Copy link
Contributor Author

jelhan commented Nov 4, 2022

Already implemented with #43. Closing this one to avoid confusion.

@jelhan jelhan closed this Nov 4, 2022
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.

CodeCeption 4 support
7 participants