-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtesto.php
More file actions
56 lines (53 loc) · 1.78 KB
/
testo.php
File metadata and controls
56 lines (53 loc) · 1.78 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
<?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: ['src'],
suites: \array_merge(
[
new SuiteConfig(
name: 'SRC',
location: new FinderConfig(
include: ['src'],
),
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 'tests/Assert/suites.php',
require 'tests/Common/suites.php',
require 'tests/Lifecycle/suites.php',
require 'tests/Data/suites.php',
require 'tests/Bench/suites.php',
require 'tests/Application/suites.php',
require 'tests/Output/suites.php',
require 'tests/Test/suites.php',
require 'tests/Codecov/suites.php',
require 'tests/Repeat/suites.php',
),
plugins: [
new \Testo\Codecov\CodecovPlugin(
level: \Testo\Codecov\Config\CoverageLevel::Line,
reports: [
new \Testo\Codecov\Report\CloverReport(__DIR__ . '/clover.xml', 'Testo'),
new \Testo\Codecov\Report\CoberturaReport(__DIR__ . '/cobertura.xml'),
],
),
],
);