Repository navigation
Expand file tree
/
Copy pathtesto.php
More file actions
63 lines (60 loc) · 2.09 KB
/
Copy pathtesto.php
File metadata and controls
63 lines (60 loc) · 2.09 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
<?php
declare(strict_types=1);
use LLM\Skills\Tests\Acceptance\Info;
use LLM\Skills\Tests\Testo\Composer\ComposerInstallPlugin;
use LLM\Skills\Tests\Testo\SandboxIsolation;
use Testo\Application\Config\ApplicationConfig;
use Testo\Application\Config\FinderConfig;
use Testo\Application\Config\SuiteConfig;
use Testo\Codecov\CodecovPlugin;
use Testo\Codecov\Config\CoverageLevel;
use Testo\Codecov\Report\CloverReport;
use Testo\Codecov\Report\PhpUnitXmlReport;
return new ApplicationConfig(
src: new FinderConfig(
include: ['src'],
),
suites: [
new SuiteConfig(
name: 'Unit',
location: new FinderConfig(
include: [__DIR__ . '/tests/Unit'],
),
),
new SuiteConfig(
name: 'Feature',
// Middle ground between Unit and Acceptance: wires real
// collaborators (filesystem, real mappers, real fetchers)
// without spinning up Composer's plugin sandbox. Use it
// when a Unit test would need too many test-doubles to be
// meaningful, but Acceptance's `composer install` overhead
// is overkill.
location: new FinderConfig(
include: [__DIR__ . '/tests/Feature'],
),
),
new SuiteConfig(
name: 'Acceptance',
location: new FinderConfig(
include: [__DIR__ . '/tests/Acceptance'],
),
plugins: [
new ComposerInstallPlugin(projectDir: Info::PROJECT_DIR, cleanup: false),
// Every test in this suite shares one consumer project,
// and the commands under test rewrite its config files.
new SandboxIsolation(),
],
),
],
plugins: [
new CodecovPlugin(
level: CoverageLevel::Line,
reports: [
new CloverReport(__DIR__ . '/runtime/clover.xml', 'Skills'),
new PhpUnitXmlReport(
outputDir: __DIR__ . '/runtime/infection/coverage-xml',
),
],
),
],
);