Yes, you can use any coverage.xml
inside IDE as long as it has correct file names (even if it was generated somewhere else). But it has to be done manually and is not very convenient to use on frequent basis.
The idea is:
- Run your PHPUnit tests on remote machine and generate
coverage.xml
. - Process it using any suitable tool to replace remote paths by local path (e.g. some custom Phing target; simple find+replace in your text editor or whatever). That's, of course, if remote paths differ from local. Otherwise just skip it.
- Tell IDE to use this file to display coverage details via Tools | Show Code Coverage Data -- attach required file there.
Please note: most likely (have not used this myself for a long time, so possibly it has been changed since then) you will have to remove and then add again such file every time you get new coverage.xml (that's the biggest annoyance) -- IDE caches content of such file. Check this ticket for some details.