{"action":"created","issue":{"url":"https://api.github.com/repos/tonini/alchemist.el/issues/183","labels_url":"https://api.github.com/repos/tonini/alchemist.el/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/tonini/alchemist.el/issues/183/comments","events_url":"https://api.github.com/repos/tonini/alchemist.el/issues/183/events","html_url":"https://github.com/tonini/alchemist.el/issues/183","id":114752371,"number":183,"title":"Run latest cached test run","user":{"login":"tonini","id":55331,"avatar_url":"https://avatars.githubusercontent.com/u/55331?v=3","gravatar_id":"","url":"https://api.github.com/users/tonini","html_url":"https://github.com/tonini","followers_url":"https://api.github.com/users/tonini/followers","following_url":"https://api.github.com/users/tonini/following{/other_user}","gists_url":"https://api.github.com/users/tonini/gists{/gist_id}","starred_url":"https://api.github.com/users/tonini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonini/subscriptions","organizations_url":"https://api.github.com/users/tonini/orgs","repos_url":"https://api.github.com/users/tonini/repos","events_url":"https://api.github.com/users/tonini/events{/privacy}","received_events_url":"https://api.github.com/users/tonini/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-03T06:37:08Z","updated_at":"2015-12-16T06:18:49Z","closed_at":"2015-12-16T06:18:49Z","body":"**From irc**\r\n\r\n> @gausby: being able to run a single unit test is neat and all, but it would be nice if I could \"pin\" a specific test, so I could call that one test from within the implementation code\r\n@gausby: I think: standing in the test code, go to the test case; execute command that will pin the test at point; go to implementation file, run pinned-test-command; it will execute the pinned test only.\r\n\r\nI like the idea and I know from my workflow that these is a nice behaviour. I wrote a package to handle these kind of case independent from the language. https://github.com/tonini/tester.el It's still kind of beta but it works very well.\r\n\r\nCurrently we have the function `alchemist-mix-rerun-last-test` to rerun the latest cached test run. But you have to call that function specifically though. What we could to is add the behaviour that it rather will call `alchemist-mix-rerun-last-test` by default if we're not in an Elixir test file at all. So if you run a test and switch to the file under test and just call the test again, it would just run the latest cached test run instead.\r\n\r\nWhat do you think about that?\r\n\r\n/cc @whatyouhide   "},"comment":{"url":"https://api.github.com/repos/tonini/alchemist.el/issues/comments/165012533","html_url":"https://github.com/tonini/alchemist.el/issues/183#issuecomment-165012533","issue_url":"https://api.github.com/repos/tonini/alchemist.el/issues/183","id":165012533,"user":{"login":"tonini","id":55331,"avatar_url":"https://avatars.githubusercontent.com/u/55331?v=3","gravatar_id":"","url":"https://api.github.com/users/tonini","html_url":"https://github.com/tonini","followers_url":"https://api.github.com/users/tonini/followers","following_url":"https://api.github.com/users/tonini/following{/other_user}","gists_url":"https://api.github.com/users/tonini/gists{/gist_id}","starred_url":"https://api.github.com/users/tonini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonini/subscriptions","organizations_url":"https://api.github.com/users/tonini/orgs","repos_url":"https://api.github.com/users/tonini/repos","events_url":"https://api.github.com/users/tonini/events{/privacy}","received_events_url":"https://api.github.com/users/tonini/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T06:18:49Z","updated_at":"2015-12-16T06:18:49Z","body":"@whatyouhide @gausby I guess would could close this issue. The workflow which @whatyouhide explained is really nice and works well enough. :+1: "}}