Skip to content

Adds theme support to code coverage. #1412

Adds theme support to code coverage.

Adds theme support to code coverage. #1412

Status Success
Total duration 4m 49s
Artifacts 1

ci.yaml

on: pull_request
Dependency Validation
9s
Dependency Validation
Coding Guidelines
46s
Coding Guidelines
Matrix: Unit Tests
Type Checker
28s
Type Checker
Matrix: End-to-End Tests
Build PHAR
31s
Build PHAR
Code Coverage
1m 27s
Code Coverage
Mutation Testing
32s
Mutation Testing
Matrix: Test PHAR
Fit to window
Zoom out
Zoom in

Annotations

3 warnings
Mutation Testing: src/TextUI/Configuration/Merger.php#L43
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ * @throws Exception * @throws NoCustomCssFileException */ - public function merge(CliConfiguration $cliConfiguration, XmlConfiguration $xmlConfiguration): Configuration + protected function merge(CliConfiguration $cliConfiguration, XmlConfiguration $xmlConfiguration): Configuration { $configurationFile = null; if ($xmlConfiguration->wasLoadedFromFile()) {
Mutation Testing: src/TextUI/Configuration/Merger.php#L300
Escaped Mutant for Mutator "IfNegation": --- Original +++ New @@ @@ } elseif ($coverageFromXmlConfiguration && $xmlConfiguration->codeCoverage()->hasCrap4j()) { $coverageCrap4j = $xmlConfiguration->codeCoverage()->crap4j()->target()->path(); } - if ($xmlConfiguration->codeCoverage()->hasHtml()) { + if (!$xmlConfiguration->codeCoverage()->hasHtml()) { $coverageHtmlHighLowerBound = $xmlConfiguration->codeCoverage()->html()->highLowerBound(); $coverageHtmlLowUpperBound = $xmlConfiguration->codeCoverage()->html()->lowUpperBound(); if ($coverageHtmlLowUpperBound > $coverageHtmlHighLowerBound) {
Mutation Testing: src/TextUI/Configuration/Xml/Loader.php#L412
Escaped Mutant for Mutator "IfNegation": --- Original +++ New @@ @@ } $html = null; $element = $this->element($xpath, 'coverage/report/html'); - if ($element) { + if (!$element) { $defaultColors = Colors::default(); $defaultThresholds = Thresholds::default(); $html = new CodeCoverageHtml(new Directory($this->toAbsolutePath($filename, (string) $this->getStringAttribute($element, 'outputDirectory'))), $this->getIntegerAttribute($element, 'lowUpperBound', $defaultThresholds->lowUpperBound()), $this->getIntegerAttribute($element, 'highLowerBound', $defaultThresholds->highLowerBound()), $this->getStringAttributeWithDefault($element, 'colorSuccessLow', $defaultColors->successLow()), $this->getStringAttributeWithDefault($element, 'colorSuccessMedium', $defaultColors->successMedium()), $this->getStringAttributeWithDefault($element, 'colorSuccessHigh', $defaultColors->successHigh()), $this->getStringAttributeWithDefault($element, 'colorWarning', $defaultColors->warning()), $this->getStringAttributeWithDefault($element, 'colorDanger', $defaultColors->danger()), $this->getStringAttribute($element, 'customCssFile'), $this->getStringAttributeWithDefault($element, 'theme', $defaultColors->theme()));

Artifacts

Produced during runtime
Name Size
phpunit-snapshot-phar Expired
686 KB