Skip to content

Commit

Permalink
behat.yml has to be different for projects than for Drumkit itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
lamech committed Aug 2, 2019
1 parent 60f7899 commit 0e7c0b6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
1 change: 0 additions & 1 deletion behat.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
default:
autoload:
- "%paths.base%/features/bootstrap"
- "%paths.base%/.mk/features/bootstrap"
suites:
default:
contexts:
Expand Down
21 changes: 21 additions & 0 deletions files/behat/behat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
default:
autoload:
- "%paths.base%/.mk/features/bootstrap"
suites:
default:
contexts:
- Drumkit\DrumkitContext
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\MinkContext
- Drupal\DrupalExtension\Context\MessageContext
- Drupal\DrupalExtension\Context\DrushContext
extensions:
Behat\MinkExtension:
goutte: ~
selenium2: ~
Drupal\DrupalExtension:
blackbox: ~
gherkin:
filters:
tags: "~@wip&&~@slow&&~@disabled"

2 changes: 1 addition & 1 deletion mk/tools/behat.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ clean-init-behat:
@rm -f behat.yml features/testing.feature

behat.yml:
@ln -s $(MK_DIR)/behat.yml $(PROJECT_ROOT)/behat.yml
@cp $(FILES_DIR)/behat/behat.yml $(PROJECT_ROOT)

features:
@mkdir -p $(PROJECT_ROOT)/features
Expand Down

0 comments on commit 0e7c0b6

Please sign in to comment.