-
Notifications
You must be signed in to change notification settings - Fork 16
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
[TASK] Introduce Core-like testing with runTests.sh #327
Conversation
1726b08
to
8e60acc
Compare
@fsuter Please have a look if this is the direction that you imagined. I will add unit and functional tests later on. I am not sure if we have to drop nimut first. |
Hi Lina. Thanks a lot for this huge work! Sorry for the late reply, I'm working only part-time these days. For my understanding, I need to clarify a few things:
As for the rest: 1) it's great to have this big code cleanup, 2) I don't understand all the details of the runTests.sh script, nor of the phpstan configuration, but I trust you on that. |
The ddev is not really needed and runTests.sh are executed in the docker containers provided by the script. I find it handy when debugging or instlalling stuff via composer as it comes with the correct PHP version. but I can exclude it locally from github. The branch alias thingy allows me to require the current development version on dev-main as "^7.2.x-dev". This has the advantage I will notice once there is an official 7.2 Version and dev-main starts to develop for version 8.0 for example. The Core is doing it like this as well: |
Thanks for the explanations. I would rather not have the DDEV configuration. As for the alias, I have never been that strict with branches. I used to created branches with funny names when starting new major versions, but this proved a hassle with the related extensions, so I'm, now just using "develop". I forgot to answer one of your questions: for me it's ok to proceed with automated testing using |
The branch-alias does not require any special naming requirements on branches. It is anlyzed by packagist whenever dev-main derived from your main branch is updated and will automatically make ^7.2.x-dev availible, without need for a a special branch or tag of that name. I can remove it if you want however. |
Supplying a ddev configuration is not desired as tests can be run via the docker container configured by runTests.sh. Contributors can use their own ddev configurations locally if desired.
I removed the ddev configuration and added .ddev to the gitignore to document the desision. |
OK, that's fine then. But please note that I'm still using |
Whatever default branch you have registered at packagist should be fine |
So are you ok with getting this merged? I have a 9 hour train ride today and could continue working on the functional tests... |
Yes, great, please proceed. Thanks a lot! |
No description provided.