{"action":"created","issue":{"url":"https://api.github.com/repos/Block8/PHPCI/issues/916","labels_url":"https://api.github.com/repos/Block8/PHPCI/issues/916/labels{/name}","comments_url":"https://api.github.com/repos/Block8/PHPCI/issues/916/comments","events_url":"https://api.github.com/repos/Block8/PHPCI/issues/916/events","html_url":"https://github.com/Block8/PHPCI/issues/916","id":68919059,"number":916,"title":"Clover-coverage report causes PHPUnit to fail","user":{"login":"REBELinBLUE","id":2143908,"avatar_url":"https://avatars.githubusercontent.com/u/2143908?v=3","gravatar_id":"","url":"https://api.github.com/users/REBELinBLUE","html_url":"https://github.com/REBELinBLUE","followers_url":"https://api.github.com/users/REBELinBLUE/followers","following_url":"https://api.github.com/users/REBELinBLUE/following{/other_user}","gists_url":"https://api.github.com/users/REBELinBLUE/gists{/gist_id}","starred_url":"https://api.github.com/users/REBELinBLUE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/REBELinBLUE/subscriptions","organizations_url":"https://api.github.com/users/REBELinBLUE/orgs","repos_url":"https://api.github.com/users/REBELinBLUE/repos","events_url":"https://api.github.com/users/REBELinBLUE/events{/privacy}","received_events_url":"https://api.github.com/users/REBELinBLUE/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Block8/PHPCI/labels/flag:requires-feedback","name":"flag:requires-feedback","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-16T13:02:41Z","updated_at":"2015-04-17T18:11:05Z","closed_at":null,"body":"I have the following\r\n\r\n```\r\n    <logging>\r\n        <log type=\"coverage-html\" target=\"storage/coverage\" charset=\"UTF-8\" yui=\"true\" highlight=\"true\" lowUpperBound=\"35\" highLowerBound=\"70\" />\r\n        <log type=\"coverage-clover\" target=\"storage/coverage/index.xml\" />\r\n        <log type=\"tap\" target=\"storage/logs/tap.log\" logIncompleteSkipped=\"false\" />\r\n    </logging>\r\n```\r\n\r\nin my phpunit.xml\r\n\r\nThe coverage-clover log causes PHPCI to regard the build as failed\r\n\r\n```\r\nRUNNING PLUGIN: php_unit\r\n\u001BTAP version 13\r\nok 1 - ExampleTest::testBasicExample\r\n1..1\r\nGenerating code coverage report in Clover XML format ... done\r\nGenerating code coverage report in HTML format ... done\u001B\r\n\u001BException: Invalid TAP string, number of tests does not match specified test count.\u001B\r\n\u001BPLUGIN: FAILED\u001B\r\n```\r\n\r\nRemoving it fixes the problem, but then you are unable to use tools like Code Climate for coverage reports"},"comment":{"url":"https://api.github.com/repos/Block8/PHPCI/issues/comments/94042336","html_url":"https://github.com/Block8/PHPCI/issues/916#issuecomment-94042336","issue_url":"https://api.github.com/repos/Block8/PHPCI/issues/916","id":94042336,"user":{"login":"mavimo","id":43941,"avatar_url":"https://avatars.githubusercontent.com/u/43941?v=3","gravatar_id":"","url":"https://api.github.com/users/mavimo","html_url":"https://github.com/mavimo","followers_url":"https://api.github.com/users/mavimo/followers","following_url":"https://api.github.com/users/mavimo/following{/other_user}","gists_url":"https://api.github.com/users/mavimo/gists{/gist_id}","starred_url":"https://api.github.com/users/mavimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavimo/subscriptions","organizations_url":"https://api.github.com/users/mavimo/orgs","repos_url":"https://api.github.com/users/mavimo/repos","events_url":"https://api.github.com/users/mavimo/events{/privacy}","received_events_url":"https://api.github.com/users/mavimo/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T18:11:05Z","updated_at":"2015-04-17T18:11:05Z","body":"@REBELinBLUE I add a new test on TAP parser and seems there are no problem, can attach the full config are you using?\r\n\r\nMy test:\r\n\r\n```php\r\n// ...\r\nclass TapParserTest extends \\PHPUnit_Framework_TestCase\r\n{\r\n    // ...\r\n\r\n    public function testMultipleReports()\r\n    {\r\n        $content = <<<TAP\r\n    TAP version 13\r\nok 1 - ExampleTest::testBasicExample\r\n1..1\r\nGenerating code coverage report in Clover XML format ... done\r\nGenerating code coverage report in HTML format ... done\r\nTAP;\r\n        $parser = new TapParser($content);\r\n        $parser->parse();\r\n\r\n        $this->assertEquals(0, $parser->getTotalFailures());\r\n    }\r\n    // ...\r\n}\r\n```"}}