forked from api-platform/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
behat.yml.dist
171 lines (165 loc) · 5.27 KB
/
behat.yml.dist
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
default:
suites:
default:
contexts:
- 'CommandContext'
- 'DoctrineContext':
doctrine: '@doctrine'
- 'HttpHeaderContext'
- 'GraphqlContext'
- 'JsonContext'
- 'HydraContext'
- 'SwaggerContext'
- 'HttpCacheContext'
- 'JsonApiContext':
doctrine: '@doctrine'
jsonApiSchemaFile: '%paths.base%/tests/Fixtures/JsonSchema/jsonapi.json'
- 'JsonHalContext':
schemaFile: '%paths.base%/tests/Fixtures/JsonHal/jsonhal.json'
- 'Behat\MinkExtension\Context\MinkContext'
- 'Behatch\Context\RestContext'
filters:
tags: '~@postgres&&~@mongodb&&~@elasticsearch'
extensions:
'Behat\Symfony2Extension':
kernel:
env: 'test'
debug: 'true'
path: 'tests/Fixtures/app/AppKernel.php'
bootstrap: 'tests/Fixtures/app/bootstrap.php'
'Behat\MinkExtension':
base_url: 'http://example.com/'
sessions:
default:
symfony2: ~
'Behatch\Extension': ~
postgres:
suites:
default: false
postgres:
contexts:
- 'CommandContext'
- 'DoctrineContext':
doctrine: '@doctrine'
- 'HttpHeaderContext'
- 'GraphqlContext'
- 'JsonContext'
- 'HydraContext'
- 'SwaggerContext'
- 'HttpCacheContext'
- 'JsonApiContext':
doctrine: '@doctrine'
jsonApiSchemaFile: '%paths.base%/tests/Fixtures/JsonSchema/jsonapi.json'
- 'JsonHalContext':
schemaFile: '%paths.base%/tests/Fixtures/JsonHal/jsonhal.json'
- 'Behat\MinkExtension\Context\MinkContext'
- 'Behatch\Context\RestContext'
filters:
tags: '~@sqlite&&~@mongodb&&~@elasticsearch'
mongodb:
suites:
default: false
mongodb:
contexts:
- 'CommandContext'
- 'DoctrineContext':
doctrine: '@doctrine_mongodb'
- 'HttpHeaderContext'
- 'GraphqlContext'
- 'JsonContext'
- 'HydraContext'
- 'SwaggerContext'
- 'HttpCacheContext'
- 'JsonApiContext':
doctrine: '@doctrine_mongodb'
jsonApiSchemaFile: '%paths.base%/tests/Fixtures/JsonSchema/jsonapi.json'
- 'JsonHalContext':
schemaFile: '%paths.base%/tests/Fixtures/JsonHal/jsonhal.json'
- 'Behat\MinkExtension\Context\MinkContext'
- 'Behatch\Context\RestContext'
filters:
tags: '~@sqlite&&~@elasticsearch&&~@!mongodb'
elasticsearch:
suites:
default: false
elasticsearch:
paths:
- '%paths.base%/features/elasticsearch'
contexts:
- 'CommandContext'
- 'ElasticsearchContext':
client: '@test.api_platform.elasticsearch.client'
elasticsearchMappingsPath: '%paths.base%/tests/Fixtures/Elasticsearch/Mappings/'
elasticsearchFixturesPath: '%paths.base%/tests/Fixtures/Elasticsearch/Fixtures/'
- 'HttpHeaderContext'
- 'JsonContext'
- 'Behatch\Context\RestContext'
- 'Behat\MinkExtension\Context\MinkContext'
filters:
tags: '@elasticsearch'
default-coverage:
suites:
default:
contexts:
- 'CommandContext'
- 'DoctrineContext':
doctrine: '@doctrine'
- 'HttpHeaderContext'
- 'GraphqlContext'
- 'JsonContext'
- 'HydraContext'
- 'SwaggerContext'
- 'HttpCacheContext'
- 'JsonApiContext':
doctrine: '@doctrine'
jsonApiSchemaFile: '%paths.base%/tests/Fixtures/JsonSchema/jsonapi.json'
- 'JsonHalContext':
schemaFile: '%paths.base%/tests/Fixtures/JsonHal/jsonhal.json'
- 'CoverageContext'
- 'Behat\MinkExtension\Context\MinkContext'
- 'Behatch\Context\RestContext'
filters:
tags: '~@postgres&&~@mongodb&&~@elasticsearch'
mongodb-coverage:
suites:
default: false
mongodb:
contexts:
- 'CommandContext'
- 'DoctrineContext':
doctrine: '@doctrine_mongodb'
- 'HttpHeaderContext'
- 'GraphqlContext'
- 'JsonContext'
- 'HydraContext'
- 'SwaggerContext'
- 'HttpCacheContext'
- 'JsonApiContext':
doctrine: '@doctrine_mongodb'
jsonApiSchemaFile: '%paths.base%/tests/Fixtures/JsonSchema/jsonapi.json'
- 'JsonHalContext':
schemaFile: '%paths.base%/tests/Fixtures/JsonHal/jsonhal.json'
- 'CoverageContext'
- 'Behat\MinkExtension\Context\MinkContext'
- 'Behatch\Context\RestContext'
filters:
tags: '~@sqlite&&~@elasticsearch&&~@!mongodb'
elasticsearch-coverage:
suites:
default: false
elasticsearch:
paths:
- '%paths.base%/features/elasticsearch'
contexts:
- 'CommandContext'
- 'ElasticsearchContext':
client: '@test.api_platform.elasticsearch.client'
elasticsearchMappingsPath: '%paths.base%/tests/Fixtures/Elasticsearch/Mappings/'
elasticsearchFixturesPath: '%paths.base%/tests/Fixtures/Elasticsearch/Fixtures/'
- 'HttpHeaderContext'
- 'JsonContext'
- 'CoverageContext'
- 'Behatch\Context\RestContext'
- 'Behat\MinkExtension\Context\MinkContext'
filters:
tags: '@elasticsearch'