Question: In modern programming workflow numerous testing frameworks are used at once. For example, in PHP world, it is de-facto standard way to use unit tests, integration tests and functional/acceptance tests at once. Most of the time different frameworks are used for different test type. I am using combination of PHPSpec for unit, PHPunit for integration and CodeCeption for functional tests.

**Is it possible to aggregate code coverage results that each of these frameworks return? Is there any tool that aggregates code coverage reports from different frameworks?**
Or it is only possible to view individual results for each framework while they are incorrect because each code coverage report doesn't take into account other tests.

Answer: 
It is actually quite simple to perfrom this task. All your frameworks rely on the same library to generate the code coverage.

As you can see the generator in [sebastianbergmann/php-code-coverage](https://github.com/sebastianbergmann/php-code-coverage/blob/master/src/CodeCoverage.php#LC330) already supports a merge function (line 335) to merge different aggregates. Since you are part of a team using tests I assume it will be easy for you to change the test execution layer slightly to gather the code coverage in a single php process and just merge em.
There is a tool for this: [phpcov](https://github.com/sebastianbergmann/phpcov). It allows to merge many coverage files with merge option:

```
$ parallel --gnu :::                                                 \
'phpunit --coverage-php /tmp/coverage/FooTest.cov tests/FooTest' \
'phpunit --coverage-php /tmp/coverage/BarTest.cov tests/BarTest'

$ phpcov merge /tmp/coverage --clover /tmp/clover.xml
phpcov 2.0.0 by Sebastian Bergmann.

Generating code coverage report in Clover XML format ... done

```