{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/3472","repository_url":"https://api.github.com/repos/Codeception/Codeception","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/3472/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/3472/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/3472/events","html_url":"https://github.com/Codeception/Codeception/issues/3472","id":173861329,"number":3472,"title":"Group Files not working with a non-empty data provider (regression since #3311)","user":{"login":"motin","id":793037,"avatar_url":"https://avatars.githubusercontent.com/u/793037?v=3","gravatar_id":"","url":"https://api.github.com/users/motin","html_url":"https://github.com/motin","followers_url":"https://api.github.com/users/motin/followers","following_url":"https://api.github.com/users/motin/following{/other_user}","gists_url":"https://api.github.com/users/motin/gists{/gist_id}","starred_url":"https://api.github.com/users/motin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motin/subscriptions","organizations_url":"https://api.github.com/users/motin/orgs","repos_url":"https://api.github.com/users/motin/repos","events_url":"https://api.github.com/users/motin/events{/privacy}","received_events_url":"https://api.github.com/users/motin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-29T20:12:30Z","updated_at":"2016-09-21T22:06:51Z","closed_at":null,"body":"This is just strange. Most of our unit tests were suddenly not executed after the upgrade from 2.2.2 to 2.2.3. Tracked this down that the test method that has a dataprovider (that provides some data) are ignored when using a group argument.\r\n\r\nThis \r\n```\r\n<?php\r\n\r\nclass FooTest extends \\Codeception\\Test\\Unit\r\n{\r\n\r\n    /**\r\n     * @var \\DbAgnosticCodeGuy\r\n     */\r\n    protected $guy;\r\n\r\n    protected function _before()\r\n    {\r\n    }\r\n\r\n    protected function _after()\r\n    {\r\n    }\r\n\r\n    // tests\r\n\r\n\r\n    public function dataProviderFoo()\r\n    {\r\n        return [\r\n        ];\r\n    }\r\n\r\n    /**\r\n     * @group coverage:full\r\n     * @dataProvider dataProviderFoo\r\n     */\r\n    public function testMe($foo = 'bar')\r\n    {\r\n        $this->assertEquals('foo', $foo);\r\n    }\r\n\r\n}\r\n```\r\n\r\n... but this one does not work (the testMe is ignored). The only difference is that the dataprovider provides some data. \r\n```\r\n<?php\r\n\r\nclass FooTest extends \\Codeception\\Test\\Unit\r\n{\r\n\r\n    /**\r\n     * @var \\DbAgnosticCodeGuy\r\n     */\r\n    protected $guy;\r\n\r\n    protected function _before()\r\n    {\r\n    }\r\n\r\n    protected function _after()\r\n    {\r\n    }\r\n\r\n    // tests\r\n\r\n\r\n    public function dataProviderFoo()\r\n    {\r\n        return [\r\n            [],\r\n        ];\r\n    }\r\n\r\n    /**\r\n     * @group coverage:full\r\n     * @dataProvider dataProviderFoo\r\n     */\r\n    public function testMe($foo = 'bar')\r\n    {\r\n        $this->assertEquals('foo', $foo);\r\n    }\r\n\r\n}\r\n```\r\n\r\nGit bisecting showed that this behavior started after #3311 was merged."},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/248757166","html_url":"https://github.com/Codeception/Codeception/issues/3472#issuecomment-248757166","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/3472","id":248757166,"user":{"login":"Naktibalda","id":395992,"avatar_url":"https://avatars.githubusercontent.com/u/395992?v=3","gravatar_id":"","url":"https://api.github.com/users/Naktibalda","html_url":"https://github.com/Naktibalda","followers_url":"https://api.github.com/users/Naktibalda/followers","following_url":"https://api.github.com/users/Naktibalda/following{/other_user}","gists_url":"https://api.github.com/users/Naktibalda/gists{/gist_id}","starred_url":"https://api.github.com/users/Naktibalda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Naktibalda/subscriptions","organizations_url":"https://api.github.com/users/Naktibalda/orgs","repos_url":"https://api.github.com/users/Naktibalda/repos","events_url":"https://api.github.com/users/Naktibalda/events{/privacy}","received_events_url":"https://api.github.com/users/Naktibalda/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T22:06:51Z","updated_at":"2016-09-21T22:06:51Z","body":"@eXorus you caused it, can you fix it?"}}
{"actor":{"display_login":"Naktibalda"}}