Currently, D8 tests have all sorts of verbose messages included, which is causing tests to reach the max assertion limit and hiding certain failures.
PIFR attempts to turn off verbose mode using direct database manipulation (simulating a variable_set()).
We now need to use CMI approaches to set this ... but with D6 functions. (ugh.)
Suggested approach is to write $conf['simpletest.settings']['verbose'] = 0
to settings.php on any D8 checkout.
Alternatively, we could try and find the simpletest.settings.yml file and edit it there, which will have to occur after simpletest is installed. The file will be located in a directory with a random component to the name, and settings.php will contain information regarding where that directory exists.
Comment | File | Size | Author |
---|---|---|---|
#1 | pifr_config.patch | 1.82 KB | jthorson |
Comments
Comment #1
jthorson CreditAttribution: jthorson commentedPatch attached.
Comment #2
jthorson CreditAttribution: jthorson commentedOkay ... need to move the commands out of the if () condition, for starters.
But also, the settings.php file has read permissions only, so opening for append presumably fails. I say presumably, because I'm not seeing the error that I expect to see dumped in the apache logs ... but the variable doesn't get written to the file.
Comment #3
BerdirIf you want a re-usable function, it probably makes more sense to use something like array $settings_keys and then loop over it/implode it.
To override e.g. config('simpletest.settings')->get('something.bla'); the $conf syntax would be $conf['simpletest.settings']['something']['bla'].
Also not sure about function name, config_write_override() or something like that would be a bit more self-speaking, I also have an issue to rename $conf to $config_override.
Comment #3.0
BerdirChanged settings.local.php to settings.php
Comment #4
isntall CreditAttribution: isntall at Drupal Association commentedComment #5
MixologicComment #6
MixologicI dont think theres any additional verbosity that can come out of run-tests.sh that isnt currently being provided. Marking this closed.