forked from civictheme/monorepo-drupal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
behat.yml
76 lines (72 loc) · 2.42 KB
/
behat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
default:
autoload: ['%paths.base%/tests/behat/bootstrap']
gherkin:
# Disable caching during development. It is enabled for profiles below.
cache: ~
filters:
# Allow skipping tests by tagging them with "@skipped".
tags: '~@skipped'
suites:
default:
paths: ['%paths.base%/tests/behat/features']
contexts:
- FeatureContext
- Drupal\DrupalExtension\Context\MinkContext
- Drupal\DrupalExtension\Context\MarkupContext
- Drupal\DrupalExtension\Context\MessageContext
- DrevOps\BehatScreenshotExtension\Context\ScreenshotContext
formatters:
progress_fail: true
# Disable JUnit formatter if memory leaks start to occur.
# See @https://github.com/Behat/Behat/pull/1423
junit:
output_path: '%paths.base%/.logs/test_results/behat'
extensions:
Drupal\MinkExtension:
browserkit_http: ~
base_url: http://nginx:8080
files_path: '%paths.base%/tests/behat/fixtures'
browser_name: chrome
selenium2:
wd_host: "http://chrome:4444/wd/hub"
javascript_session: selenium2
# Provides integration with Drupal APIs.
Drupal\DrupalExtension:
blackbox: ~
api_driver: drupal
drush_driver: drush
drupal:
drupal_root: web
drush:
root: web
selectors:
message_selector: '.messages'
error_message_selector: '.messages.error'
success_message_selector: '.messages.status'
warning_message_selector: '.messages.warning'
# Capture HTML and JPG screenshots on demand and on failure.
DrevOps\BehatScreenshotExtension:
dir: '%paths.base%/.logs/screenshots'
purge: false # Change to 'true' (no quotes) to purge screenshots on each run.
# Show explicit fail information and continue the test run.
DrevOps\BehatFormatProgressFail\FormatExtension: ~
# Profile for parallel testing.
# Runs all tests not tagged with "smoke" or "@p1" and not tagged with "@skipped".
p0:
gherkin:
cache: '/tmp/behat_gherkin_cache'
filters:
tags: "@smoke,~@p1&&~@skipped&&~@subtheme"
# Profile for parallel testing.
# Runs all tests tagged with "@smoke" or "@p1" and not tagged with "@skipped".
p1:
gherkin:
cache: '/tmp/behat_gherkin_cache'
filters:
tags: "@smoke,@p1&&~@skipped&&~@subtheme"
# Profile for smoke ttesting.
smoke:
gherkin:
cache: '/tmp/behat_gherkin_cache'
filters:
tags: "@smoke&&~@skipped&&~@subtheme"