-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtesto.php
More file actions
82 lines (79 loc) · 2.98 KB
/
testo.php
File metadata and controls
82 lines (79 loc) · 2.98 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
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
<?php
declare(strict_types=1);
use Testo\Application\Config\ApplicationConfig;
use Testo\Application\Config\FinderConfig;
use Testo\Application\Config\Plugin\SuitePlugins;
use Testo\Application\Config\SuiteConfig;
use Testo\Bench\BenchmarkPlugin;
use Testo\Inline\InlineTestPlugin;
return new ApplicationConfig(
src: new FinderConfig(
['core', 'plugin', 'bridge'],
[
'bridge/symfony-console/tests',
'plugin/assert/tests',
'plugin/bench/tests',
'plugin/codecov/tests',
'plugin/convention/tests',
'plugin/data/tests',
'plugin/inline/tests',
'plugin/lifecycle/tests',
'plugin/repeat/tests',
'plugin/retry/tests',
'plugin/test/tests',
],
),
suites: \array_merge(
[
new SuiteConfig(
name: 'Core/Inline',
location: new FinderConfig(
include: ['core'],
),
plugins: SuitePlugins::only(
new InlineTestPlugin(),
new BenchmarkPlugin(),
),
),
],
# If running in CI, skip the sandbox
// \filter_var(\getenv('TESTO_CI'), FILTER_VALIDATE_BOOLEAN) ? [] : [
// new SuiteConfig(
// name: 'sandbox',
// location: new FinderConfig(
// include: ['tests/Testo'],
// ),
// ),
// ],
require 'bridge/symfony-console/tests/suites.php',
require 'plugin/assert/tests/suites.php',
require 'plugin/bench/tests/suites.php',
require 'plugin/codecov/tests/suites.php',
require 'plugin/convention/tests/suites.php',
require 'plugin/data/tests/suites.php',
require 'plugin/inline/tests/suites.php',
require 'plugin/lifecycle/tests/suites.php',
require 'plugin/repeat/tests/suites.php',
require 'plugin/retry/tests/suites.php',
require 'plugin/test/tests/suites.php',
require 'tests/Application/suites.php',
require 'tests/Common/suites.php',
require 'tests/Output/suites.php',
require 'tests/Tokenizer/suites.php',
),
plugins: [
new \Testo\Codecov\CodecovPlugin(
level: \Testo\Codecov\Config\CoverageLevel::Line,
reports: [
new \Testo\Codecov\Report\CloverReport(__DIR__ . '/runtime/clover.xml', 'Testo'),
new \Testo\Codecov\Report\CoberturaReport(__DIR__ . '/runtime/cobertura.xml'),
new \Testo\Codecov\Report\PhpUnitXmlReport(
// Infection's TmpDirProvider appends `/infection` to `tmpDir`, so
// when infection.json sets `tmpDir: "runtime"`, Infection looks for
// coverage at `runtime/infection/coverage-xml/index.xml`.
outputDir: __DIR__ . '/runtime/infection/coverage-xml',
),
],
),
],
);