Conversation
…ons for backward compatibility.
|
So it turns out that the phpunit-core runner requires a webserver. drupal_ti_run_server uses drush runserver which requires Drupal to be installed. I tried to replace drush runserver with php -S to start a webserver, however this breaks clean urls as drush runserver does some fancy php file inclusions to populate the $_GET['q'] parameter. All this said, we probably dont need to decouple Drupal download and installation as there are now (again) no runners that require Drupal to be downloaded but not installed. So a simple changing of drupal_ti_ensure_module to drupal_ti_ensure_module_linked in phpunit-core/before_script.sh is probably all this really needs. Thoughts? |
1 similar comment
|
My initial use case before drupalci supported composer was that I did not want to install Drupal at all because my phpunit tests did not depend on a Drupal installation. And then I would run My main use case was xero, but I can test that on drupal.org now. |
|
I guess we could provide a variable that could be set to false if no functional phpunit tests exist. Then phpunit can run without Drupal installed and without webserver. |
This is a follow up pull request for: #49