Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Ability to run individual behat tests broken #62

Open
nbueneju opened this issue Feb 7, 2020 · 1 comment
Open

Ability to run individual behat tests broken #62

nbueneju opened this issue Feb 7, 2020 · 1 comment

Comments

@nbueneju
Copy link

nbueneju commented Feb 7, 2020

With the default behat configuration and dependencies:
behat/behat 3.6.1
behat/gherkin 4.6.0
Behat option to run individual test is broken while running all the tests is working as desired.

Steps to reproduce the issue:
1 - Clone the repo
2 - run docker-comopse up -d to up the containers downloaded
3 - run docker-compose exec web composer install
4 - run docker-compose exec web vendor/bin/run toolkit:install-clean to install Drupal
5 - run docker-compose exec web vendor/bin/run toolkit:test-behat or docker-compose exec web vendor/bin/behat to run all the tests inside the tests/features/ directory ► will run all the tests, by default just authentication.feature, so behat knows features directory and runs fine the tests.
6 - run docker-compose exec web vendor/bin/behat tests/features/authentication.feature to run the specific feature (working in step 5) and the result is:

image

And the result is the same for other kind of specifyng tests to be run, like *.feature:,...

CC: @LuisSantosEncinas

@nbueneju
Copy link
Author

nbueneju commented Feb 7, 2020

After looking for the issue in Behat/Behat and Behat/Gherkin github repos seems is a known issue and there is a patch for behat/gherkin available which solves the issue as described here.

I've already provided PR#63.

Thanks in advance and best regards,

Juanpe

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant