{"action":"created","issue":{"url":"https://api.github.com/repos/cucumber/cucumber-ruby-tcl/issues/29","labels_url":"https://api.github.com/repos/cucumber/cucumber-ruby-tcl/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/cucumber/cucumber-ruby-tcl/issues/29/comments","events_url":"https://api.github.com/repos/cucumber/cucumber-ruby-tcl/issues/29/events","html_url":"https://github.com/cucumber/cucumber-ruby-tcl/issues/29","id":83448020,"number":29,"title":"Implement hooks","user":{"login":"jowers","id":4787889,"avatar_url":"https://avatars.githubusercontent.com/u/4787889?v=3","gravatar_id":"","url":"https://api.github.com/users/jowers","html_url":"https://github.com/jowers","followers_url":"https://api.github.com/users/jowers/followers","following_url":"https://api.github.com/users/jowers/following{/other_user}","gists_url":"https://api.github.com/users/jowers/gists{/gist_id}","starred_url":"https://api.github.com/users/jowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jowers/subscriptions","organizations_url":"https://api.github.com/users/jowers/orgs","repos_url":"https://api.github.com/users/jowers/repos","events_url":"https://api.github.com/users/jowers/events{/privacy}","received_events_url":"https://api.github.com/users/jowers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-01T11:30:50Z","updated_at":"2015-06-02T18:26:02Z","closed_at":null,"body":"Currently, as each scenario is a new tcl interpreter, we have been using inline tcl to perform setup tasks for our tests. However, as there is no order to the files being sourced, we have hit a few problems with dependencies (e.g. trying to call a proc before it has been initialised).\r\n\r\nIt would be good if we were able to have before/after hooks to allow us to perform the initialisation in the before hook, knowing that everything has been sourced by that point.\r\n\r\n@mattwynne, would this require changes to cucumber to allow hooks to be passed through?\r\n\r\nNote - we'd need to consider what scope things are being run in if looking at this."},"comment":{"url":"https://api.github.com/repos/cucumber/cucumber-ruby-tcl/issues/comments/108044209","html_url":"https://github.com/cucumber/cucumber-ruby-tcl/issues/29#issuecomment-108044209","issue_url":"https://api.github.com/repos/cucumber/cucumber-ruby-tcl/issues/29","id":108044209,"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-06-02T18:26:02Z","updated_at":"2015-06-02T18:26:02Z","body":"Hi @jowers.\r\n\r\nI think we can do this without any changes to Cucumber. Shall we start with a feature file as usual, where you can sketch out the tcl DSL for defining hooks, and we can work our way in from there?"}}