{"action":"created","issue":{"url":"https://api.github.com/repos/cucumber/cucumber-ruby/issues/821","labels_url":"https://api.github.com/repos/cucumber/cucumber-ruby/issues/821/labels{/name}","comments_url":"https://api.github.com/repos/cucumber/cucumber-ruby/issues/821/comments","events_url":"https://api.github.com/repos/cucumber/cucumber-ruby/issues/821/events","html_url":"https://github.com/cucumber/cucumber-ruby/issues/821","id":64746870,"number":821,"title":"Suites","user":{"login":"mattwynne","id":19260,"avatar_url":"https://avatars.githubusercontent.com/u/19260?v=3","gravatar_id":"","url":"https://api.github.com/users/mattwynne","html_url":"https://github.com/mattwynne","followers_url":"https://api.github.com/users/mattwynne/followers","following_url":"https://api.github.com/users/mattwynne/following{/other_user}","gists_url":"https://api.github.com/users/mattwynne/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwynne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwynne/subscriptions","organizations_url":"https://api.github.com/users/mattwynne/orgs","repos_url":"https://api.github.com/users/mattwynne/repos","events_url":"https://api.github.com/users/mattwynne/events{/privacy}","received_events_url":"https://api.github.com/users/mattwynne/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cucumber/cucumber-ruby/labels/New%20Behaviour","name":"New Behaviour","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cucumber/cucumber-ruby/milestones/10","html_url":"https://github.com/cucumber/cucumber-ruby/milestones/3.0","labels_url":"https://api.github.com/repos/cucumber/cucumber-ruby/milestones/10/labels","id":556956,"number":10,"title":"3.0","description":"Breaking changes that can't be released in the 2.x series","creator":{"login":"mattwynne","id":19260,"avatar_url":"https://avatars.githubusercontent.com/u/19260?v=3","gravatar_id":"","url":"https://api.github.com/users/mattwynne","html_url":"https://github.com/mattwynne","followers_url":"https://api.github.com/users/mattwynne/followers","following_url":"https://api.github.com/users/mattwynne/following{/other_user}","gists_url":"https://api.github.com/users/mattwynne/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwynne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwynne/subscriptions","organizations_url":"https://api.github.com/users/mattwynne/orgs","repos_url":"https://api.github.com/users/mattwynne/repos","events_url":"https://api.github.com/users/mattwynne/events{/privacy}","received_events_url":"https://api.github.com/users/mattwynne/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":1,"state":"open","created_at":"2014-02-03T10:11:30Z","updated_at":"2015-08-07T00:46:12Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-03-27T11:55:57Z","updated_at":"2015-08-07T00:52:30Z","closed_at":null,"body":"See https://github.com/Behat/Behat/blob/master/features/suite.feature\r\n\r\n```ruby\r\nCucumber.configure do |config|\r\n  config.suite(:domain) do |suite_config|\r\n    suite_config.world_modules << DriveDomain\r\n    suite_config.filters << TagFilter.new(\"~@web\")\r\n    suite_config.filters << LocationFilter.new(\"features/core\")\r\n  end\r\n\r\n  config.suite(:web) do |suite_config|\r\n    suite_config.world_modules << DriveUI\r\n    suite_config.filters << TagFilter.new(\"@web\")\r\n  end\r\nend\r\n```\r\n\r\nThis would run the features twice, applying the specified filters and mixing in the specified world modules. The overall result would aggregate results from both suites."},"comment":{"url":"https://api.github.com/repos/cucumber/cucumber-ruby/issues/comments/128551392","html_url":"https://github.com/cucumber/cucumber-ruby/issues/821#issuecomment-128551392","issue_url":"https://api.github.com/repos/cucumber/cucumber-ruby/issues/821","id":128551392,"user":{"login":"mattwynne","id":19260,"avatar_url":"https://avatars.githubusercontent.com/u/19260?v=3","gravatar_id":"","url":"https://api.github.com/users/mattwynne","html_url":"https://github.com/mattwynne","followers_url":"https://api.github.com/users/mattwynne/followers","following_url":"https://api.github.com/users/mattwynne/following{/other_user}","gists_url":"https://api.github.com/users/mattwynne/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwynne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwynne/subscriptions","organizations_url":"https://api.github.com/users/mattwynne/orgs","repos_url":"https://api.github.com/users/mattwynne/repos","events_url":"https://api.github.com/users/mattwynne/events{/privacy}","received_events_url":"https://api.github.com/users/mattwynne/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T00:52:30Z","updated_at":"2015-08-07T00:52:30Z","body":"Hi @richarda - sorry for the lag.\r\n\r\nHere's an example I can imagine. You have a set of scenarios that you want to run on both an iOS and an Android app. A few of the scenarios don't apply to one platform or the other and have tags to mark them as such. You have a mechanism for choosing the appropriate world to drive the the iOS or Android app.\r\n\r\nRight now, the build runs like this:\r\n\r\n`$ WORLD=IOS cucumber --tags ~@android-only\r\n`$ WORLD=ANDROID cucumber --tags ~@ios-only\r\n\r\nThe disadvantage here is that you get two sets of results. With suites, you'd be able to configure them like this:\r\n\r\n```\r\nCucumber.configure do |config|\r\n  config.suite(:ios) do |suite_config|\r\n    suite_config.world_modules << IosAutomation\r\n    suite_config.filters << TagFilter.new(\"~@android-only\")\r\n  end\r\n\r\n  config.suite(:android) do |suite_config|\r\n    suite_config.world_modules << AndroidAutomation\r\n    suite_config.filters << TagFilter.new(\"~@ios-only\")\r\n  end\r\nend\r\n```\r\n\r\nThen when you run `cucumber` you'd run both suites, and see the aggregate results.\r\n\r\nMake sense?"}}