localgovdrupal / localgov_project

Project template for Drupal 10 sites built with the LocalGov Drupal distribution.
https://localgovdrupal.org
GNU General Public License v2.0
10 stars 8 forks source link

Add environment variables for phpunit. #89

Closed finnlewis closed 1 year ago

finnlewis commented 2 years ago

The environment variables do get the tests outputiing html, but only after creating the directory web/sites/simpletest/browser_output

@ekes @stephen-cox is there a way to create the directory for browser_output with composer at install?

stephen-cox commented 2 years ago

@finnlewis as this is running in Lando, my suggestion would be to either use a Lando build step or and event to create the directory.

It is possible to add scripts to Composer, but it strikes me we may not want to create the web/sites/simpletest/browser_output directory with every install. If we did do this we should git ignore the directory.

finnlewis commented 2 years ago

This is now working a treat for me locally! Could you double check @ekes or @stephen-cox ?