{"action":"created","issue":{"url":"https://api.github.com/repos/guard/guard-minitest/issues/133","labels_url":"https://api.github.com/repos/guard/guard-minitest/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/guard/guard-minitest/issues/133/comments","events_url":"https://api.github.com/repos/guard/guard-minitest/issues/133/events","html_url":"https://github.com/guard/guard-minitest/issues/133","id":114400272,"number":133,"title":"How to rerun single failing test by name","user":{"login":"jmarceli","id":4281333,"avatar_url":"https://avatars.githubusercontent.com/u/4281333?v=3","gravatar_id":"","url":"https://api.github.com/users/jmarceli","html_url":"https://github.com/jmarceli","followers_url":"https://api.github.com/users/jmarceli/followers","following_url":"https://api.github.com/users/jmarceli/following{/other_user}","gists_url":"https://api.github.com/users/jmarceli/gists{/gist_id}","starred_url":"https://api.github.com/users/jmarceli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmarceli/subscriptions","organizations_url":"https://api.github.com/users/jmarceli/orgs","repos_url":"https://api.github.com/users/jmarceli/repos","events_url":"https://api.github.com/users/jmarceli/events{/privacy}","received_events_url":"https://api.github.com/users/jmarceli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-31T09:33:51Z","updated_at":"2015-10-31T12:27:06Z","closed_at":null,"body":"Is it possible to re-run single test directly from Guard console?\r\n\r\nI know I can do this from command line with:\r\n```\r\nruby -Ilib:test test/path/to/my_controller.rb -n test_name\r\n```\r\n\r\nbut it would be really handy if I could just type something into Guard console e.g.\r\n\r\n```\r\nguard-minitest -n test_name\r\n```\r\nor something like that."},"comment":{"url":"https://api.github.com/repos/guard/guard-minitest/issues/comments/152732129","html_url":"https://github.com/guard/guard-minitest/issues/133#issuecomment-152732129","issue_url":"https://api.github.com/repos/guard/guard-minitest/issues/133","id":152732129,"user":{"login":"e2","id":150197,"avatar_url":"https://avatars.githubusercontent.com/u/150197?v=3","gravatar_id":"","url":"https://api.github.com/users/e2","html_url":"https://github.com/e2","followers_url":"https://api.github.com/users/e2/followers","following_url":"https://api.github.com/users/e2/following{/other_user}","gists_url":"https://api.github.com/users/e2/gists{/gist_id}","starred_url":"https://api.github.com/users/e2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e2/subscriptions","organizations_url":"https://api.github.com/users/e2/orgs","repos_url":"https://api.github.com/users/e2/repos","events_url":"https://api.github.com/users/e2/events{/privacy}","received_events_url":"https://api.github.com/users/e2/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T12:27:06Z","updated_at":"2015-10-31T12:27:06Z","body":"I think you can pass it through Minitest's environment variable `TESTOPTS`, but you'd have to probably restart guard.\r\n\r\nMaybe it's enough if you type in in the console:\r\n\r\n```ruby\r\nENV['TESTOPTS'] = '--name test_name'\r\n```\r\n\r\nAnd then just save the file with the test name?"}}