Skip to content

Phpcov merge : Template file could not be loaded. #253

@naruvimama

Description

@naruvimama

I am trying to merge two .cov files, the problem happens while trying to generate the html output.

Here is the command used and the corresponding stack trace.

$ phpcov merge -v --html ./../build/coverage/ --clover ./../build/coverage/coverage.xml ./../build/coverage/
phpcov 2.0.1 by Sebastian Bergmann.

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

Generating code coverage report in HTML format ...

[InvalidArgumentException]
Template file could not be loaded.

Exception trace:
() at phar:///usr/local/bin/phpcov/phpunit/php-text-template/Text/Template.php:112
Text_Template->setFile() at phar:///usr/local/bin/phpcov/phpunit/php-text-template/Text/Template.php:88
Text_Template->__construct() at phar:///usr/local/bin/phpcov/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Directory.php:65
PHP_CodeCoverage_Report_HTML_Renderer_Directory->render() at phar:///usr/local/bin/phpcov/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML.php:143
PHP_CodeCoverage_Report_HTML->process() at phar:///usr/local/bin/phpcov/src/BaseCommand.php:216
SebastianBergmann\PHPCOV\BaseCommand->handleReports() at phar:///usr/local/bin/phpcov/src/MergeCommand.php:129
SebastianBergmann\PHPCOV\MergeCommand->execute() at phar:///usr/local/bin/phpcov/symfony/console/Symfony/Component/Console/Command/Command.php:252
Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/phpcov/symfony/console/Symfony/Component/Console/Application.php:887
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/phpcov/symfony/console/Symfony/Component/Console/Application.php:193
Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/phpcov/src/Application.php:98
SebastianBergmann\PHPCOV\Application->doRun() at phar:///usr/local/bin/phpcov/symfony/console/Symfony/Component/Console/Application.php:124
Symfony\Component\Console\Application->run() at /usr/local/bin/phpcov:552

merge [--clover="..."] [--crap4j="..."] [--html="..."] [--php="..."] [--text="..."] directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions