Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Behat v3.4.0 no longer finding features #1979

Closed
arosboro opened this issue Sep 11, 2017 · 6 comments
Closed

Behat v3.4.0 no longer finding features #1979

arosboro opened this issue Sep 11, 2017 · 6 comments
Labels
Bug Something isn't working

Comments

@arosboro
Copy link

My system information:

  • Operating system type: MacOS
  • Operating system version: Sierra
  • BLT version: 8.9.2

Output of blt doctor:

vagrant@local:/var/www/redacted $ blt doctor
[warning] The xDebug extension is loaded. This will significantly decrease performance.
Attempting to run doctor on host machine...
+----------------------+-------------------------------------------------------------------------------+
| Property             | Value                                                                         |
+----------------------+-------------------------------------------------------------------------------+
| %paths               |                                                                               |
|  - %root             | /var/www/redacted/docroot                                                         |
|  - %site             | sites/default                                                                 |
|  - %modules          | modules                                                                       |
|  - %themes           | themes                                                                        |
|  - %config-active    | ../config/active                                                              |
|  - %config-sync      | /var/www/redacted/config/default                                                  |
|  - %config-vcs       | ../config/default                                                             |
|  - %config-local     | ../config/local                                                               |
|  - %config-ci        | ../config/ci                                                                  |
|  - %config-dev       | ../config/dev                                                                 |
|  - %config-test      | ../config/test                                                                |
|  - %config-prod      | ../config/prod                                                                |
|  - %files            | sites/default/files                                                           |
|  - %private          | /var/www/redacted/files-private                                                   |
|  - %temp             | /tmp                                                                          |
| admin-theme          | seven                                                                         |
| blt-version          | 8.9.2                                                                         |
| bootstrap            | Successful                                                                    |
| config-active        | ../config/active                                                              |
| config-ci            | ../config/ci                                                                  |
| config-dev           | ../config/dev                                                                 |
| config-local         | ../config/local                                                               |
| config-prod          | ../config/prod                                                                |
| config-sync          | /var/www/redacted/config/default                                                  |
| config-test          | ../config/test                                                                |
| config-vcs           | ../config/default                                                             |
| db-driver            | mysql                                                                         |
| db-hostname          | localhost                                                                     |
| db-name              | drupal                                                                        |
| db-password          | drupal                                                                        |
| db-port              | 3306                                                                          |
| db-status            | Connected                                                                     |
| db-username          | drupal                                                                        |
| dev-desktop-enabled  | false                                                                         |
| drupal-settings-file | sites/default/settings.php                                                    |
| drupal-version       | 8.3.7                                                                         |
| drupal-vm-enabled    | true                                                                          |
| drush-alias-files    | /var/www/redacted/docroot/../drush/site-aliases/aliases.drushrc.php               |
|                      | /var/www/redacted/docroot/../drush/site-aliases/redacted.aliases.drushrc.php          |
|                      | /var/www/redacted/docroot/../drush/site-aliases/example.acsf.aliases.drushrc.php  |
|                      | /var/www/redacted/docroot/../drush/site-aliases/example.local.aliases.drushrc.php |
|                      | /var/www/redacted/docroot/../drush/site-aliases/local.aliases.drushrc.php         |
| drush-conf           | /var/www/redacted/drush/drushrc.php                                               |
| drush-script         | /var/www/redacted/vendor/drush/drush/drush.php                                    |
| drush-temp           | /tmp                                                                          |
| drush-version        | 8.1.13                                                                        |
| files                | sites/default/files                                                           |
| install-profile      | lightning                                                                     |
| local-drushrc        | /var/www/redacted/docroot/sites/default/local.drushrc.php                         |
| local-settings       | /var/www/redacted/docroot/sites/default/settings/local.settings.php               |
| modules              | modules                                                                       |
| php-bin              | /usr/bin/php                                                                  |
| php-conf             | /etc/php/5.6/cli/php.ini                                                      |
| php-mysql            | /var/run/mysqld/mysqld.sock                                                   |
| php-os               | Linux                                                                         |
| private              | /var/www/redacted/files-private                                                   |
| root                 | /var/www/redacted/docroot                                                         |
| shell                |                                                                               |
| site                 | sites/default                                                                 |
| temp                 | /tmp                                                                          |
| theme                | bempire                                                                       |
| themes               | themes                                                                        |
| uri                  | http://local.redacted.org                                                         |
| user                 |                                                                               |
+----------------------+-------------------------------------------------------------------------------+
+--------------------------+------------------------------------------------------------------------------+
| Check                    | Outcome                                                                      |
+--------------------------+------------------------------------------------------------------------------+
| checkDocrootExists       | Found docroot.                                                               |
| checkCoreExists          | Drupal core exists                                                           |
| checkSettingsFile        | BLT settings are included in settings file.                                  |
| checkLocalSettingsFile   | Found your local settings file.                                              |
| checkLocalDrushFile      | Found your local drush settings file.                                        |
| checkUri                 | $options['uri'] is set.                                                      |
| checkUriResponse         | Received a response from site http://local.redacted.org.                         |
| checkFileSystem:%files   | Public files directory is writable.                                          |
| checkFileSystem:%private | Private files directory is writable.                                         |
| checkFileSystem:%temp    | Temporary files directory is writable.                                       |
| checkDbConnection        | Connected to database.                                                       |
| checkDrupalBootstrapped  | Bootstrapped Drupal via drush.                                               |
| checkDrupalInstalled     | Drupal is installed.                                                         |
| checkCaching:page        | Drupal cache is disabled.                                                    |
| checkCaching:css         | CSS preprocessing is disabled.                                               |
| checkCaching:js          | JS preprocessing is disabled.                                                |
| checkCiConfig            | Git remotes are set in project.yml.                                          |
| checkComposer:require    | acquia/blt is in composer.json's require object.                             |
| checkBehat:exists        | Behat local settings file exists.                                            |
| checkBehat:root          | Behat drupal_root is set correctly for Drupal VM.                            |
| checkProjectYml:keys     | project.yml has no deprecated keys.                                          |
| checkDrupalVm:alias      | The drush alias assigned to drush.aliases.local does not exist in your drush |
|                          | aliases file.                                                                |
|                          |   drush.aliases.local is set to @${project.machine_name}.local               |
|                          |   Looked in /var/www/redacted/docroot/../drush/site-aliases/aliases.drushrc.php  |
| checkPhpDateTimezone     | PHP setting for date.timezone is correctly set                               |
+--------------------------+------------------------------------------------------------------------------+

When I run this command:

[Testing\Behat] Running behat  --format pretty /mnt/tmp/local.prod/source/tests/behat --colors --no-interaction --stop-on-failure --strict --config /mnt/tmp/local.prod/source/tests/behat/local.yml --profile local --tags '~ajax&&~experimental&&~lightningextension' -v

I get the following output:


No scenarios
No steps
0m0.57s (30.34Mb)



                                                                                                                                                         
  [Behat\Testwork\Tester\Exception\WrongPathsException]                                                                                                  
  No specifications found at path(s) `/mnt/tmp/local.prod/source/tests/behat`. This might be because of incorrect paths configuration in your `suites`.  
                                                                                                                                                         

And I expected this to happen: Tests to run all suites and steps

@arosboro arosboro changed the title Behat v3.4.0 no long finding features Behat v3.4.0 no longer finding features Sep 11, 2017
@danielnitschelc
Copy link

Same here.

@grasmash grasmash added the Bug Something isn't working label Sep 12, 2017
grasmash added a commit to grasmash/bolt that referenced this issue Sep 12, 2017
@grasmash
Copy link
Contributor

grasmash commented Sep 12, 2017

This will be addressed in 8.9.3. For now, you can use the following on your own project:

composer require behat/behat:~3.3.1 --dev

Also make sure that you have the right composer merge plug-in configuration:

    "merge-plugin": {
        "replace": false,
        "ignore-duplicates": true
    },

@randomletters
Copy link

I downgraded to 3.3.1 but this did not fix the issue for me.

@grasmash
Copy link
Contributor

Downgrading to 3.3.1 has resolved the issue in BLT's own automated test: #1981

@arosboro
Copy link
Author

Downgrading fixed the build for me

@randomletters
Copy link

Something was cached in my vm. I rebuilt from scratch and it is now working.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants