/phpunit-code-coverage-theme

PhpUnit Code Coverage Dark Theme

Primary LanguageCSSMIT LicenseMIT

phpunit-code-coverage-theme

This is a Dark Theme for phpunit's code coverage report to html. I got really tired getting blinded by the white screen every night so I made this css file.

All you have to do is when your generating your report to copy the dark mode css file and replace the custom.css file with the new dark mode css.

I personally did this in a composer command like so.

Edit your composer.json to something like this to make it happen in 1 solid motion.

"scripts": {
        "cover": "vendor/bin/phpunit ; curl -s https://raw.githubusercontent.com/Porthorian/phpunit-code-coverage-theme/main/custom.css -o .phpunit.cache/html/_css/custom.css",
    },

Enjoy Here are before and after pics.

Before

image

After

image