{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/2970","repository_url":"https://api.github.com/repos/Codeception/Codeception","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/2970/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/2970/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/2970/events","html_url":"https://github.com/Codeception/Codeception/issues/2970","id":147008311,"number":2970,"title":"Test not run when using example annotation","user":{"login":"teeencho","id":4391839,"avatar_url":"https://avatars.githubusercontent.com/u/4391839?v=3","gravatar_id":"","url":"https://api.github.com/users/teeencho","html_url":"https://github.com/teeencho","followers_url":"https://api.github.com/users/teeencho/followers","following_url":"https://api.github.com/users/teeencho/following{/other_user}","gists_url":"https://api.github.com/users/teeencho/gists{/gist_id}","starred_url":"https://api.github.com/users/teeencho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teeencho/subscriptions","organizations_url":"https://api.github.com/users/teeencho/orgs","repos_url":"https://api.github.com/users/teeencho/repos","events_url":"https://api.github.com/users/teeencho/events{/privacy}","received_events_url":"https://api.github.com/users/teeencho/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Codeception/Codeception/labels/2.2","name":"2.2","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-08T18:54:21Z","updated_at":"2016-04-12T13:43:17Z","closed_at":"2016-04-12T10:33:51Z","body":"Hi,\r\n\r\nI'm giving examples a try, since I have used a similar feature on another framework a while back.\r\nBut seems that my sample test is ignored when I try to run it. Removing the @example annotation runs it.\r\n\r\nWhat am I doing wrong?\r\n```\r\n     /**\r\n     * @group example\r\n     * @example ['a', 'b']\r\n     * @example ['c', 'd']\r\n     */\r\n    public function tryExample(AcceptanceTester $I, Example $example){\r\n        $I->comment($example[0]);\r\n        $I->comment($example[1]);\r\n    }\r\n\r\n```\r\nI can see that the test is counted though, because the console outputs the amount of tests that the suite has 30:\r\n\r\n```\r\nAcceptance (dev, local) Tests (30) --------------------------\r\nModules: WebDriver, Asserts, Db, \\Helper\\Acceptance, Filesystem\r\n------------------------------------------------------------\r\n------------------------------------------------------------\r\n\r\n\r\nTime: 5.43 seconds, Memory: 13.00Mb\r\n\r\nNo tests executed!\r\n```\r\n\r\nAnd if I remove the ignored test, it outputs 29:\r\n\r\n```\r\nAcceptance (dev, local) Tests (29) --------------------------\r\nModules: WebDriver, Asserts, Db, \\Helper\\Acceptance, Filesystem\r\n------------------------------------------------------------\r\n------------------------------------------------------------\r\n\r\n\r\nTime: 5.43 seconds, Memory: 13.00Mb\r\n\r\nNo tests executed!\r\n```\r\nI'm using Codeception 2.2.0-beta\r\n\r\nThank you.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/208911895","html_url":"https://github.com/Codeception/Codeception/issues/2970#issuecomment-208911895","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/2970","id":208911895,"user":{"login":"teeencho","id":4391839,"avatar_url":"https://avatars.githubusercontent.com/u/4391839?v=3","gravatar_id":"","url":"https://api.github.com/users/teeencho","html_url":"https://github.com/teeencho","followers_url":"https://api.github.com/users/teeencho/followers","following_url":"https://api.github.com/users/teeencho/following{/other_user}","gists_url":"https://api.github.com/users/teeencho/gists{/gist_id}","starred_url":"https://api.github.com/users/teeencho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teeencho/subscriptions","organizations_url":"https://api.github.com/users/teeencho/orgs","repos_url":"https://api.github.com/users/teeencho/repos","events_url":"https://api.github.com/users/teeencho/events{/privacy}","received_events_url":"https://api.github.com/users/teeencho/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T13:43:17Z","updated_at":"2016-04-12T13:43:17Z","body":"@DavertMik thanks for your response. I found the problem to be the group.\r\n\r\nI was running `vendor/bin/codecept run --env dc,dev -g example`, when I run the suite without the group parameter, the example tests run fine.\r\n\r\nReopen or create new issue?\r\n\r\nThank you."}}