forked from infection/infection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
191 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,6 +125,9 @@ final class RunCommand extends BaseCommand | |
/** @var string */ | ||
private const OPTION_LOGGER_GITHUB = 'logger-github'; | ||
|
||
/** @var string */ | ||
private const OPTION_LOGGER_GITLAB = 'logger-gitlab'; | ||
|
||
private const OPTION_LOGGER_HTML = 'logger-html'; | ||
|
||
private const OPTION_USE_NOOP_MUTATORS = 'noop'; | ||
|
@@ -274,6 +277,12 @@ protected function configure(): void | |
'Log escaped Mutants as GitHub Annotations (automatically detected on Github Actions itself, use <comment>true</comment> to force-enable or <comment>false</comment> to force-disable it).', | ||
false | ||
) | ||
->addOption( | ||
self::OPTION_LOGGER_GITLAB, | ||
null, | ||
InputOption::VALUE_OPTIONAL, | ||
'Path to log escaped Mutants in the GitLab (Code Climate) JSON format.', | ||
) | ||
->addOption( | ||
self::OPTION_LOGGER_HTML, | ||
null, | ||
|
@@ -404,6 +413,7 @@ private function createContainer(IO $io, LoggerInterface $logger): Container | |
$testFramework = trim((string) $input->getOption(self::OPTION_TEST_FRAMEWORK)); | ||
$testFrameworkExtraOptions = trim((string) $input->getOption(self::OPTION_TEST_FRAMEWORK_OPTIONS)); | ||
$initialTestsPhpOptions = trim((string) $input->getOption(self::OPTION_INITIAL_TESTS_PHP_OPTIONS)); | ||
$gitlabFileLogPath = trim((string) $input->getOption(self::OPTION_LOGGER_GITLAB)); | ||
Check warning on line 416 in src/Command/RunCommand.php GitHub Actions / Mutation Testing Code Review Annotations 8.1
Check warning on line 416 in src/Command/RunCommand.php GitHub Actions / Mutation Testing Code Review Annotations 8.1
|
||
$htmlFileLogPath = trim((string) $input->getOption(self::OPTION_LOGGER_HTML)); | ||
|
||
/** @var string|null $minMsi */ | ||
|
@@ -489,6 +499,7 @@ private function createContainer(IO $io, LoggerInterface $logger): Container | |
$isForGitDiffLines, | ||
$gitDiffBase, | ||
$this->getUseGitHubLogger($input), | ||
$gitlabFileLogPath === '' ? Container::DEFAULT_GITLAB_LOGGER_PATH : $gitlabFileLogPath, | ||
Check warning on line 502 in src/Command/RunCommand.php GitHub Actions / Mutation Testing Code Review Annotations 8.1
Check warning on line 502 in src/Command/RunCommand.php GitHub Actions / Mutation Testing Code Review Annotations 8.1
Check warning on line 502 in src/Command/RunCommand.php GitHub Actions / Mutation Testing Code Review Annotations 8.1
Check warning on line 502 in src/Command/RunCommand.php GitHub Actions / Mutation Testing Code Review Annotations 8.1
|
||
$htmlFileLogPath === '' ? Container::DEFAULT_HTML_LOGGER_PATH : $htmlFileLogPath, | ||
(bool) $input->getOption(self::OPTION_USE_NOOP_MUTATORS), | ||
(bool) $input->getOption(self::OPTION_EXECUTE_ONLY_COVERING_TEST_CASES) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.