There's no issue with running bin/behat -di or bin/behat --dry-run on its own, but once it is affiliated with a Drupal directory, it's no longer possible to run these commands, which are independent of the Drupal instance. As a non-developer, it's a real pain to have to build the whole install if you want to add new scenarios or modify scenarios and ensure they're executable. Alternatively, commenting out the relevant lines behat.yml file to is only a makeshift solution.

Let me know if you need any further details!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Frank Ralf’s picture

Just inserting the screenshot directly ;-)

Behat error when Drupal not installed

And something for the search engines to read:

[Drupal\Exception\BootstrapException]
Unable to determine Drupal core version. Supported versions are 6, 7, and 8.
jhedstrom’s picture

Issue summary: View changes

If you remove reference to the Drupal driver from behat.yml:

    Drupal\DrupalExtension:
      blackbox: ~
      drupal:
        drupal_root: "path/to/drupal"

and just leave blackbox:~, you can get a list of steps.

That isn't ideal, but workable. Leaving open until this can be properly resolved.