-
Notifications
You must be signed in to change notification settings - Fork 271
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
PHPUnit 7 supports ? #422
Comments
Hello, any updates on this issue? |
+1, phpunit is at 7.2 already, can we expect this anytime soon ? |
It's difficult to say what the extend of the changes would be (the changes to namespaces has been a bit disruptive for previous branches) but if someone wants to open and test a PR for |
Anyone else working on this? If not, I will do it. We have a large suite of tests that we need to continue to move forward with. Switching to a new framework will certainly take more time than migrating this. |
@thewunder any progress yet? |
@luckydonald Sorry I haven't started yet. PHPUnit 6 is EOL on February 8th. So it is time to get on this soon. |
How did this progress, I have been developing tests using PHPUnit 8 and this package conflicts with PHPUnit... any suggestions? |
Hey all, I'm finally starting this, I hope to have a pull request this week. |
For the interested https://github.com/thewunder/phpunit-selenium/tree/phpunit_7_plus @giorgiosironi I have 9 failures, 105 pass, 51 ignored tests right now running on chrome, the vagrant box seems pretty hopelessly out of date. |
@thewunder, great work so far! Can I help to get this done? Regarding the Vagrant box; we are using https://github.com/elgalu/docker-selenium in our CI and it works like a charm! |
@giorgiosironi It'd be great to know if this is able to progress, as PhpUnit has been EOL for several months now. Is this something we can expect to see getting merged in, or should we be looking for something else to do PhpUnit / Selenium integration? And thanks @thewunder for your work on this! |
Do we have any update on progress on this? |
Giorgio gave me commit rights. But I would like to have one other person run the tests, take a look at code etc before I merge and release it. |
I can have a look this weekend. Will this be supporting PHP unit 7 & 8? Or is this targeting PHP unit 7 specifically? |
RIght now I know everything runs in 8.x but with some deprecation notices. I think we may need two separate releases because the deprecated class (which we would need for 7 support) was introduced in 7.x |
I agree with the two releases. Maybe 5.* for 7 support and 6.* for 8 support? What is the deprecated class? |
TestListener and TestListenerDefaultImplementation |
I think we should skip 6 and go directly to 7 then version 7 of the library supports PHPUnit 7, while version 8 supports 8. Sound good all? |
Sounds good, we’d also be skipping 5 too right? |
@thewunder I have fixed some broken tests and changed the Travis config so the tests run on Sauce Labs. I also added a |
Oh, great! I'd love to help out manually testing it by trying to use it, if someone gives me some hints in how to install it into a project (are there pre-releases made for composer?) |
@luckydonald you can install it using composer by specifying the repository and branch from the PR (#430). It should be something like this (I haven't tried it):
However, personally I would not recommend this package for new projects as it is not very well maintained. I help to keep it up-to-date because we have a project with a very big test suite relying on this package and it is more work to port all tests. We mostly use Cypress for browser tests now. If Selenium is a requirement, I think you are better off with something like Codeception with the WebDriver module which is properly maintained. |
Why? Alternatives that you listed aren't a good replacement for this project. First, Codeception is a completely new testing framework. Although it is based on PHPUnit, it still needs to be installed separately. And some things might not be compatible with PHPUnit. Also, Cypress is only for Node.js and it only supports Chrome. Not a replacement for good old Selenium and PHPUnit... |
@filips123 Sounds like some valid points here, However I'm still very thankful for any good looking alternatives to evaluate, I'm under the assumption that the fork of @thewunder will be merged into this project at some point, so there will be an upgrade path available in the future? The ...
"repositories": [
{
"url": "https://github.com/thewunder/phpunit-selenium.git",
"type": "git"
}
],
"require-dev": {
"phpunit/phpunit-selenium": "dev-phpunit_7_plus",
},
... |
@luckydonald Good to hear. After I do the same with my large test suite and get comparable results I will merge and release this as 7.0 |
@thewunder I see the repo was deleted, can I now just install it like regular, I.e. is it released now? |
Aaaaaaa installs are breaking |
apparently no. I'll try |
Okey I can't get it to work.
|
@thewunder What is the current process to install it? |
@luckydonald Paclagist still hasn't updated package. This is probably because they recently removed old @thewunder @giorgiosironi One of the maintainers needs to update Packagist to use GitHub's webhook instead of service. See hassankhan/config#119 (comment) for details.
You have to wait until package is updated. |
@filips123 Yep, although I was given commit rights, I was not made the admin of the repo, so I need @giorgiosironi or possibly even @sebastianbergmann to fix the webhook. |
I republished the deleted fork with 3129be3, so It can at least still be installed for now. {
...
"license": "Do not use!",
"repositories": [
{
"url": "https://github.com/luckydonald-forks/phpunit-selenium.git",
"type": "git"
}
],
"require-dev": {
"phpunit/phpunit": "^8",
"phpunit/phpunit-selenium": "dev-phpunit_7_plus",
}
} @thewunder please next time wait with deletion until it is released. Edit: The fork is now a bit newer after the merge in dev, having the added phpunit restriction removed again. As long as you don't need #432, it should be fine. |
@luckydonald, there is no need to keep the fork/branch open once it's merged. Usually dev-master should work but, as @filips123 mentions, the webhook to packagist is currently broken. As a temporary workaround you can define the repository in your composer.json: {
"repositories": [{
"url": "https://github.com/giorgiosironi/phpunit-selenium.git",
"type": "git"
}],
"require-dev": {
"phpunit/phpunit": "^7",
"phpunit/phpunit-selenium": "dev-master"
}
} Please note that master currently only supports PHPUnit 7! |
I was not able to get it to work, but I think i removed the But yeah, that might work as well. Gonna stick to the fork until a release is live. To make sure it isn't breaking again. |
I am not the maintainer of https://packagist.org/packages/phpunit/phpunit-selenium. |
Thanks for taking the time to let me know I should continue to bother @giorgiosironi |
7.0.0 is released! |
👍 |
When is planned supports with PHPUnit 7
The text was updated successfully, but these errors were encountered: