dockware
  • dockware doc's
  • News
  • Setup
    • Docker Setup
    • What Image should you use?
    • Performance Tweaks
  • Use Dockware
    • First Run
    • Update Dockware
    • Advanced Run
    • Default Credentials
    • Symfony or Shopware 5
    • Changelog
  • Features
    • Intro
    • Environment Variables
    • Adminer
    • Mailcatcher
    • Switch PHP Version
    • Switch Node Version
    • Tideways Profiling
    • Pimp my Log
    • Filebeat
    • SSH Users
    • MySQL Users
    • Shopware Currency
  • Development
    • Intro
    • Start Developing
    • Switch Branches
    • Debugging
    • Watchers
    • App Development
    • Update Shopware
    • Dockware Essentials
    • Custom Domains
    • Custom Images
    • Code Coverage
    • CLI Build Shopware 6 Plugin
    • Multi-Environment Setups
  • Contribute
    • Intro
    • Setup Github Version
    • Create Feature
    • Code Styles
    • Testing
    • Create Pull Requests
  • CI/CD
    • Github
    • Gitlab
    • Bitbucket
    • Buddy
  • Tips & Tricks
    • Create a new Project
    • Bind-Mounting
    • Persisting Data
    • Housekeeping
    • Online Servers
    • Performance on Mac
    • Security
  • FAQ
    • Sequel Pro
    • Dockware and other images
    • Scripts (PSH?)
    • Redis
    • Error Port not available
    • MySQL failed
    • Elasticsearch
    • Windows Problems
    • Chrome Problems
    • Import MySQL Dump
    • Shopware 5 Support
    • Use Https/SSL
    • Container hangs in Pipeline
    • Disable the admin worker
  • Additional Links
    • Imprint
    • Founders
    • Dockware website
    • Dockware in Shopware Slack
Powered by GitBook
On this page
  • Enable XDebug
  • Set Coverage Mode

Was this helpful?

  1. Development

Code Coverage

PreviousCustom ImagesNextCLI Build Shopware 6 Plugin

Last updated 3 years ago

Was this helpful?

The latest version of Xdebug changed the way how code coverage works. It now depends on a specific mode that has to be set within the configuration of XDebug.

Dockware delivers this mode in debug and not in the required coverage mode.

It's still easy to enable code coverage for your project. Just follow these steps...

Enable XDebug

Make sure to enable XDebug either by using the or by using the in the folder /var/www

Set Coverage Mode

You can always change the mode by exposing a new environment variable before your command. That means if you want to use code coverage for your PHPUnit tests, simply add the exposing of the correct XDEBUG_MODE directly before your command.

XDEBUG_MODE=coverage php vendor/bin/phpunit

That's it! Your coverage reports are now generated if configured with your testing framework!

environment variable
makefile commands