-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
behat.yml
63 lines (59 loc) · 2.73 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
default:
autoload: ["%paths.base%/tests/behat/bootstrap"]
suites:
default:
paths: ["%paths.base%/tests/behat/features"]
contexts:
- FeatureContext:
- screenshot_dir: '%paths.base%/.logs/screenshots'
- BehatCliContext
- DrevOps\BehatScreenshotExtension\Context\ScreenshotContext
- DrevOps\BehatPhpServer\PhpServerContext:
- docroot: "%paths.base%/tests/behat/features/fixtures"
host: "0.0.0.0"
port: 8888
extensions:
Behat\MinkExtension:
browserkit_http: ~
files_path: "%paths.base%/tests/behat/features/fixtures"
base_url: http://0.0.0.0:8888
browser_name: chrome
javascript_session: selenium2
selenium2:
wd_host: "http://localhost:4444/wd/hub"
capabilities:
browser: chrome
extra_capabilities:
"goog:chromeOptions":
args:
- '--disable-gpu' # Disables hardware acceleration required in containers and cloud-based instances (like CI runners) where GPU is not available.
# Options to increase stability and speed.
- '--disable-extensions' # Disables all installed Chrome extensions. Useful in testing environments to avoid interference from extensions.
- '--disable-infobars' # Hides the infobar that Chrome displays for various notifications, like warnings when opening multiple tabs.
- '--disable-popup-blocking' # Disables the popup blocker, allowing all popups to appear. Useful in testing scenarios where popups are expected.
- '--disable-translate' # Disables the built-in translation feature, preventing Chrome from offering to translate pages.
- '--no-first-run' # Skips the initial setup screen that Chrome typically shows when running for the first time.
- '--test-type' # Disables certain security features and UI components that are unnecessary for automated testing, making Chrome more suitable for test environments.
DrevOps\BehatScreenshotExtension:
dir: '%paths.base%/.logs/screenshots'
fail: true
purge: true
DVDoug\Behat\CodeCoverage\Extension:
filter:
include:
directories:
'src': ~
reports:
text:
showColors: true
showOnlySummary: true
html:
target: .logs/coverage/behat/.coverage-html
cobertura:
target: .logs/coverage/behat/cobertura.xml
formatters:
pretty: 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'