Skip to content
Dockerfile PHP Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker/php
report
src
tests
.gitignore
Dockerfile
README.md
composer.json
composer.lock
docker-compose.yml
screenshot.png

README.md

php-code-coverage-with-incorrect-line-detection

The purpose of this repository is to provide a simple and fast way to reproduce the issue Incorrect detection: line executed is marked as not executed that I had reported.

Requirements

  • Docker CE - see the install guide.
  • Docker Compose - it is already included in Docker Desktop for Mac and Windows). If necessary, see the install guide.

Steps to reproduce the bug:

  1. Build the docker image.
docker-compose build
  1. Install composer dependencies.
docker-compose run php composer install
  1. Generate the code coverage report
docker-compose run php phpunit tests --coverage-html="report/" --whitelist="src"
  1. Open the report in your browser. It will look like:

Screenshot of generated report

You can’t perform that action at this time.