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
[FEATURE REQUEST] Codeception v5 support #571
Comments
HI @jasonbahl, you've beaten me to the race: I was going to open a similar issue to track the progress. I definitely want to support Codeception 5 and use the chance to break some back-compatibility and review/rethink a number of approaches. Currently, I'm not able to provide a road-map as I still have to take the time to see how badly broken wp-browser would be using Codeception 5. Since you've already set up this issue, I will use this to track my progress and updates. |
@lucatume codeception v5 will require PHP8 btw. IMO we should hold out a little bit more and then make a clean cut requiring 8.0 aswell here. |
@calvinalkan I know, I've started working on an exploratory branch |
@lucatume My suggestion is that we wait until 28 Nov 2022 and then release a new v4 that requires codeception 5 and PHP8. 7.4 loses security updates on that date. |
I do not have a due date for wp-browser v4 yet, if it's ready before then, I would release it, if not, it will be out when it's done. |
@lucatume fair enough, which PHP version are you aiming at tho? |
@lucatume @calvinalkan waiting/deprioritizing work on this until the end of support of 7.4 doesn't sound like a very good option. Some hostings enforce user migration to PHP 8 before this date. Some users might need your library earlier than that date to verify their migration readiness. |
@lucatume See also Codeception/Codeception#6532 |
You can use wp-browser on PHP8.1 without any problem. The reverse is not true. Now that codeception5 is out with a minimum of 8.0 you cant use it anymore to test PHP7.X code. |
What is the status of v4 w/ Codeception 5? PHP 7.x was fully EOL in December and even 8.0 will be EOL in less than 6 months... so we're pretty far behind the curve at this point. |
The status is RC1.
WordPress requires a minimum PHP version of |
Version 4 of the project supporting version 5 of Codeception has been merged. |
Awesome. Is there a migration guide? Or is that not needed? |
There is no migration guide yet; my idea is to clean up the current issues (stale, deprecated) and then start on that. |
I just checked the new branch. I'm curious to know what happened to the docker based testing setup. Why did you refactor it? |
You mean the container-based setup for testing the wp-browser project itself, I presume. In short, the refactoring of the project testing stack achieves two goals: remove complexity and "eat my own dog food", the controller extensions. |
Is your feature request related to a problem? Please describe.
I'm interested in setting up "path coverage" for my tests, and it looks like this will be supported in Codeception v5 (see: https://github.com/Codeception/Codeception/releases/tag/5.0.0-alpha1) / (Codeception/Codeception#6158)
Describe the solution you'd like
I would like to use Codeception v5+ with wp-browser, specifically to take advantage of the path_coverage configuration
I'm not sure how much is changing in Coceception v5, so I understand this may not be a simple task.
Additional context
For some context, there's some discussion about the benefits of pathCoverage here: wp-graphql/wp-graphql#2298 (comment)
The text was updated successfully, but these errors were encountered: