-
Notifications
You must be signed in to change notification settings - Fork 395
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
Running Behat tests throws [error] Drupal is not installed
.
#4215
Comments
Are you by chance running Also, did you by chance setup your ddev project using @lcatlett's plugin for DDEV + BLT? Highly recommend doing so, it makes a lot of things "just work." -- https://github.com/lcatlett/blt-ddev |
Thanks, yes, I should have made that clear, I used I will check out lcatlett's repo, that's great, I wasn't aware of it. Thanks for the response. |
Looking into this a little more - it actually does seem to have to do with the deprecation warning. When I place It seems like it is the methods listed below which are expecting strings like 'Successful' and 'Drupal bootstrap : Successful'.
Even though everything is bootstrapping successfully, BLT reads the error message string as part of the 'Successful' string and so it thinks it failed. That's what I've found anyway. |
@dmgig can you check, what is the exit code of BLT checks for the output to be exactly However it also checks that the exit code is 0, if there's any other exit code then I don't think BLT has any choice but to assume something is wrong. We could make the error message more informative though. |
@danepowell when I do
|
Now I'm confused, shouldn't there be an error message there? When you get the error message, after running the status check, what's the output of |
@danepowell Hey - thanks. I ran the following, with output to show the state of the file. Let me know if it is incorrect.
And the results were (I added a couple of newlines after each output just for my own clarity).
|
Can rerun with |
In your original post you said that the command
Can you reproduce that now? If so, that's where I need to see the output of |
Let's see - My original post doesn't use My post showed that, when error_reporting is on, and I run BLT commands (like When error reporting is on, the deprecation string prints to the terminal when I run When I run BLT seems to be loading that Kint class as part of its bootstrap process, where as Drush alone does not. |
Thanks @danepowell |
I want to run behat tests but I get the error
[error] Drupal is not installed
.Drupal does seem to be installed, I can access it at the url on my DDEV environment, and it runs as it should.
The problem seems to be BLT not getting the status info from drush.
Meaning, when I run
ddev exec drush status
I see the result which looks entirely correct. But when I runblt doctor
, the result of its execution ofddev exec drush status
is an empty array (I checked this by dumping$status_info
inAcquia\Blt\Robo\Inspector::getDrushStatus
).Having gone through each error shown by
blt doctor
, all seem correct when looking at drush status, settings.php, etc.Detailed error output
BLT doctor output
You will see some Kint deprecation errors, but I don't think they are related?
The text was updated successfully, but these errors were encountered: