Skip to content

Commit 6d62541

Browse files
authored
Merge pull request #220 from kiklop74/testdox
Add support for testdox output
2 parents f0ad7b9 + 747a459 commit 6d62541

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Command/PHPUnitCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ protected function configure(): void
3737
->addOption('fail-on-incomplete', null, InputOption::VALUE_NONE, 'Treat incomplete tests as failures')
3838
->addOption('fail-on-risky', null, InputOption::VALUE_NONE, 'Treat risky tests as failures')
3939
->addOption('fail-on-skipped', null, InputOption::VALUE_NONE, 'Treat skipped tests as failures')
40-
->addOption('fail-on-warning', null, InputOption::VALUE_NONE, 'Treat tests with warnings as failures');
40+
->addOption('fail-on-warning', null, InputOption::VALUE_NONE, 'Treat tests with warnings as failures')
41+
->addOption('testdox', null, InputOption::VALUE_NONE, 'Enable testdox formatter');
4142
}
4243

4344
protected function initialize(InputInterface $input, OutputInterface $output): void
@@ -95,7 +96,7 @@ private function resolveOptions(InputInterface $input): array
9596
'--verbose',
9697
];
9798
}
98-
foreach (['fail-on-incomplete', 'fail-on-risky', 'fail-on-skipped', 'fail-on-warning'] as $option) {
99+
foreach (['fail-on-incomplete', 'fail-on-risky', 'fail-on-skipped', 'fail-on-warning', 'testdox'] as $option) {
99100
if ($input->getOption($option)) {
100101
$options[] = [
101102
'--' . $option,

0 commit comments

Comments
 (0)