{"action":"created","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/1676","repository_url":"https://api.github.com/repos/mochajs/mocha","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/1676/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/1676/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/1676/events","html_url":"https://github.com/mochajs/mocha/issues/1676","id":71974707,"number":1676,"title":"Impossible to only run a dynamically generated test","user":{"login":"ZECTBynmo","id":1222872,"avatar_url":"https://avatars.githubusercontent.com/u/1222872?v=3","gravatar_id":"","url":"https://api.github.com/users/ZECTBynmo","html_url":"https://github.com/ZECTBynmo","followers_url":"https://api.github.com/users/ZECTBynmo/followers","following_url":"https://api.github.com/users/ZECTBynmo/following{/other_user}","gists_url":"https://api.github.com/users/ZECTBynmo/gists{/gist_id}","starred_url":"https://api.github.com/users/ZECTBynmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZECTBynmo/subscriptions","organizations_url":"https://api.github.com/users/ZECTBynmo/orgs","repos_url":"https://api.github.com/users/ZECTBynmo/repos","events_url":"https://api.github.com/users/ZECTBynmo/events{/privacy}","received_events_url":"https://api.github.com/users/ZECTBynmo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mochajs/mocha/labels/needs-feedback","name":"needs-feedback","color":"ffff00"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2015-04-29T20:04:08Z","updated_at":"2016-10-27T17:47:17Z","closed_at":null,"body":"I'm working inside of a very large mocha test suite with hundreds of tests, so having the ability to run a single test using .only is extremely useful during test development.\r\n\r\nHowever, as far as I can tell, there's no way to mark a dynamically generated test suite as being the only one that runs. I'd really like to write some dynamically generated tests, and it's hard to run all the tests every time. Am I missing something? Is there a pattern you might suggest to get around this issue?\r\n\r\nI expected there might be something like:\r\n```\r\nmocha = new Mocha\r\nsuite = Mocha.Suite.create mocha.suite, config.name\r\nsuite.only()\r\nmocha.run()\r\n```\r\n\r\nI have stumbled across this pattern, but it only runs the first of my dynamically generated tests\r\n```\r\ndescribe.only config.name, ->\r\n  it 'should run tests', ->\r\n     mocha = new Mocha\r\n     ...stuff...\r\n     mocha.run()\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mochajs/mocha/issues/comments/256718921","html_url":"https://github.com/mochajs/mocha/issues/1676#issuecomment-256718921","issue_url":"https://api.github.com/repos/mochajs/mocha/issues/1676","id":256718921,"user":{"login":"Munter","id":331790,"avatar_url":"https://avatars.githubusercontent.com/u/331790?v=3","gravatar_id":"","url":"https://api.github.com/users/Munter","html_url":"https://github.com/Munter","followers_url":"https://api.github.com/users/Munter/followers","following_url":"https://api.github.com/users/Munter/following{/other_user}","gists_url":"https://api.github.com/users/Munter/gists{/gist_id}","starred_url":"https://api.github.com/users/Munter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Munter/subscriptions","organizations_url":"https://api.github.com/users/Munter/orgs","repos_url":"https://api.github.com/users/Munter/repos","events_url":"https://api.github.com/users/Munter/events{/privacy}","received_events_url":"https://api.github.com/users/Munter/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T17:47:17Z","updated_at":"2016-10-27T17:47:17Z","body":"One year and no feedback. For future reference, use --grep to filter out relevant tests from the command line"}}
{"actor":{"display_login":"Munter"}}