From 0e7c0b6c16c752247875c2ad2f201372acf398c3 Mon Sep 17 00:00:00 2001 From: lamech Date: Fri, 2 Aug 2019 01:16:58 +0000 Subject: [PATCH] behat.yml has to be different for projects than for Drumkit itself. --- behat.yml | 1 - files/behat/behat.yml | 21 +++++++++++++++++++++ mk/tools/behat.mk | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 files/behat/behat.yml diff --git a/behat.yml b/behat.yml index 0e84fa0..4213537 100644 --- a/behat.yml +++ b/behat.yml @@ -1,7 +1,6 @@ default: autoload: - "%paths.base%/features/bootstrap" - - "%paths.base%/.mk/features/bootstrap" suites: default: contexts: diff --git a/files/behat/behat.yml b/files/behat/behat.yml new file mode 100644 index 0000000..c05c858 --- /dev/null +++ b/files/behat/behat.yml @@ -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" + diff --git a/mk/tools/behat.mk b/mk/tools/behat.mk index 2ef8e36..32fc5d6 100644 --- a/mk/tools/behat.mk +++ b/mk/tools/behat.mk @@ -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