-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbehat.yml
110 lines (110 loc) · 3.94 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#
# @file
# Configuration file for our Behat tests.
#
#
default:
suites:
stage-one:
paths:
- %paths.base%/tests/features/stage-one
contexts:
- StepDefs\StageOne\Lamb
stage-two:
paths:
- %paths.base%/tests/features/stage-two
contexts:
- StepDefs\StageTwo\Lamb
stage-three-four-five:
paths:
- %paths.base%/tests/features/stage-three-four-five
contexts:
- StepDefs\StageThreeFourFive\DrupalNodeCreation:
username: admin
# Include the admin password in the .env file.
passwd: ~
db_src_path: %paths.base%/tests/test-db/behat-test.sqlite
# This is where the test site expects its database. Note that
# /dev/shm only exists in GNU/Linux. Use a different path in other
# Operating systems.
db_dst_path: /dev/shm/behat-test.sqlite
stage-six:
paths:
- %paths.base%/tests/features/stage-six
contexts:
- StepDefs\StageSix\DrupalNodeCreation:
username: admin
# Include the admin password in the .env file.
passwd: ~
db_src_path: %paths.base%/tests/test-db/behat-test.sqlite
# This is where the test site expects its database. Note that
# /dev/shm only exists in GNU/Linux. Use a different path in other
# Operating systems.
db_dst_path: /dev/shm/behat-test.sqlite
- StepDefs\StageSix\DrupalUserCreation:
username: admin
# Again, include the real admin password in the .env file.
passwd: ~
db_src_path: %paths.base%/tests/test-db/behat-test.sqlite
db_dst_path: /dev/shm/behat-test.sqlite
extensions:
Behat\MinkExtension:
base_url: http://localhost:8888/
show_auto: true
show_cmd: 'firefox %s'
sessions:
default:
goutte: ~
# Demonstrate the use of traits in stage six to conform with the DRY principal.
dry-with-traits:
suites:
# Override the stage-six test suit's step definitions.
stage-six:
contexts:
- StepDefs\TraitStage\DrupalNodeCreation:
username: admin
# Include the real admin password in the .env file.
passwd: ~
db_src_path: %paths.base%/tests/test-db/behat-test.sqlite
db_dst_path: /dev/shm/behat-test.sqlite
- StepDefs\TraitStage\DrupalUserCreation:
username: admin
# Include the real admin password in the .env file.
passwd: ~
db_src_path: %paths.base%/tests/test-db/behat-test.sqlite
db_dst_path: /dev/shm/behat-test.sqlite
# Demonstrate the use of services in stage six to conform with the DRY principal.
dry-with-services:
suites:
stage-six:
contexts:
- StepDefs\ServiceStage\DrupalNodeCreation:
- '@drupal-service'
- StepDefs\ServiceStage\DrupalUserCreation:
- '@drupal-service'
services:
drupal-service:
class: StepDefs\ServiceStage\DrupalService
arguments:
username: admin
# Include the real admin password in the .env file.
passwd: ~
db_src_path: %paths.base%/tests/test-db/behat-test.sqlite
db_dst_path: /dev/shm/behat-test.sqlite
# Demonstrate the use of autowired services in stage six to conform with the DRY principal.
dry-with-autowired-services:
suites:
stage-six:
contexts:
- StepDefs\ServiceStage\DrupalNodeCreation
- StepDefs\ServiceStage\DrupalUserCreation
services:
StepDefs\ServiceStage\DrupalService:
class: StepDefs\ServiceStage\DrupalService
arguments:
username: admin
# Include the real admin password in the .env file.
passwd: ~
db_src_path: %paths.base%/tests/test-db/behat-test.sqlite
db_dst_path: /dev/shm/behat-test.sqlite
autowire: true