-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbehat.dist.php
More file actions
51 lines (49 loc) · 1.71 KB
/
behat.dist.php
File metadata and controls
51 lines (49 loc) · 1.71 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
42
43
44
45
46
47
48
49
50
51
<?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/behat-code-coverage-cache',
'filter' => [
'include' => [
'directories' => [
'src' => null,
],
],
'includeUncoveredFiles' => true,
],
'reports' => [
'cobertura' => [
'target' => 'build/coverage-behat/cobertura.xml',
],
'clover' => [
'target' => 'build/coverage-behat/clover.xml',
],
'crap4j' => [
'target' => 'build/coverage-behat/crap4j.xml',
],
'html' => [
'target' => 'build/coverage-behat',
],
'openclover' => [
'target' => 'build/coverage-behat/openclover.xml',
],
'serialized' => [
'target' => 'build/coverage-behat/coverage.cov',
],
'text' => [
'showColors' => true,
'showUncoveredFiles' => true,
],
'xml' => [
'target' => 'build/coverage-behat',
],
],
]))
->withSuite((new Suite('maths'))
->withContexts('MathsContext')
->withPaths('%paths.base%/features/maths')));