Adds theme support to code coverage. #1412
ci.yaml
on: pull_request
Dependency Validation
9s
Coding Guidelines
46s
Matrix: Unit Tests
Type Checker
28s
Matrix: End-to-End Tests
Matrix: Test PHAR
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 |
|