Skip to content
Snippets Groups Projects
Commit 4d9aca80 authored by jurgenhaas's avatar jurgenhaas
Browse files

Add support for ahoy and update the templates

parent 1818f544
No related branches found
No related tags found
No related merge requests found
ahoy.yml 0 → 100644
ahoyapi: v2
commands:
test:
cmd: docker-compose exec -T --user root php ./vendor/bin/behat --config tests/behat/behat.yml "$@"
usage: Run Behat tests on the project
test2xml:
cmd: docker-compose exec -T --user root php ./vendor/bin/behat --config tests/behat/behat.yml --format junit --out tests/output "$@"
usage: Run Behat tests on the project and output in junit format
update:
cmd: composer b4d "$@"
usage: Update Behat4Drupal setup in project
......@@ -63,6 +63,12 @@
"callback": "LakeDrops\\Behat4Drupal\\Plugin::config",
"description": "(Re-)Configure Behat for this project."
}
},
"ahoy": {
"b4d": {
"usage": "Behat for Drupal",
"imports": ["ahoy.yml"]
}
}
}
}
......
......@@ -76,6 +76,8 @@ class Handler extends BaseHandler {
}
$fs->chmod($file, 0664);
}
$this->git('ignore tests/output');
}
/**
......
<?php
use Drupal\DrupalExtension\Context\RawDrupalContext;
use Behat\WebApiExtension\Context\WebApiContext;
class FeatureContext extends WebApiContext {
/**
* Defines application features from the specific context.
*/
class FeatureContext extends RawDrupalContext {
}
......@@ -31,8 +31,6 @@ default:
capabilities:
marionette: null
locationContextEnabled: false
Behat\WebApiExtension:
base_url: http://{{ projectname }}.docker.localhost:8000
autoload:
'': "%paths.base%/bootstrap/context/"
suites:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment