-
-
Notifications
You must be signed in to change notification settings - Fork 166
Expand file tree
/
Copy pathbehat.dist.php
More file actions
41 lines (39 loc) · 1.33 KB
/
behat.dist.php
File metadata and controls
41 lines (39 loc) · 1.33 KB
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
<?php
use Behat\Config\Config;
use Behat\Config\Extension;
use Behat\Config\Profile;
use Behat\Config\Suite;
use DVDoug\Behat\CodeCoverage\Extension as CodeCoverageExtension;
return (new Config())
->withProfile((new Profile('default'))
->withExtension(new Extension(CodeCoverageExtension::class, [
'cache' => 'build/php-code-coverage-cache',
'filter' => [
'include' => [
'directories' => [
'src' => null,
],
],
],
'reports' => [
'clover' => [
'target' => 'build/coverage-behat/clover.xml',
],
'html' => [
'target' => 'build/coverage-behat',
],
'text' => [
'showColors' => true,
'showUncoveredFiles' => true,
],
],
]))
->withSuite((new Suite('packer'))
->withContexts('PackerContext')
->withPaths('%paths.base%/features/common'))
->withSuite((new Suite('infallible_packer'))
->withContexts('InfalliblePackerContext')
->withPaths(
'%paths.base%/features/common',
'%paths.base%/features/infallible'
)));