{"action":"created","issue":{"url":"https://api.github.com/repos/pester/Pester/issues/403","repository_url":"https://api.github.com/repos/pester/Pester","labels_url":"https://api.github.com/repos/pester/Pester/issues/403/labels{/name}","comments_url":"https://api.github.com/repos/pester/Pester/issues/403/comments","events_url":"https://api.github.com/repos/pester/Pester/issues/403/events","html_url":"https://github.com/pester/Pester/issues/403","id":103304820,"number":403,"title":"Cannot mock external commands","user":{"login":"ephracis","id":247659,"avatar_url":"https://avatars.githubusercontent.com/u/247659?v=3","gravatar_id":"","url":"https://api.github.com/users/ephracis","html_url":"https://github.com/ephracis","followers_url":"https://api.github.com/users/ephracis/followers","following_url":"https://api.github.com/users/ephracis/following{/other_user}","gists_url":"https://api.github.com/users/ephracis/gists{/gist_id}","starred_url":"https://api.github.com/users/ephracis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ephracis/subscriptions","organizations_url":"https://api.github.com/users/ephracis/orgs","repos_url":"https://api.github.com/users/ephracis/repos","events_url":"https://api.github.com/users/ephracis/events{/privacy}","received_events_url":"https://api.github.com/users/ephracis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-26T15:56:24Z","updated_at":"2016-05-19T12:58:52Z","closed_at":null,"body":"I am trying to test code that calls on external binaries (in my example certreq and openssl.exe). Obviously I want to mock these calls in my tests but when I try, Pester complains:\r\n\r\n> You did not declare a mock of the certreq Command.\r\n\r\nHere's a small reproducable example:\r\n\r\n    Mock echo { }\r\n    echo foo\r\n    Assert-MockCalled echo\r\n\r\nRunning Powershell 3.0 on Windows 7."},"comment":{"url":"https://api.github.com/repos/pester/Pester/issues/comments/220316444","html_url":"https://github.com/pester/Pester/issues/403#issuecomment-220316444","issue_url":"https://api.github.com/repos/pester/Pester/issues/403","id":220316444,"user":{"login":"nohwnd","id":5735905,"avatar_url":"https://avatars.githubusercontent.com/u/5735905?v=3","gravatar_id":"","url":"https://api.github.com/users/nohwnd","html_url":"https://github.com/nohwnd","followers_url":"https://api.github.com/users/nohwnd/followers","following_url":"https://api.github.com/users/nohwnd/following{/other_user}","gists_url":"https://api.github.com/users/nohwnd/gists{/gist_id}","starred_url":"https://api.github.com/users/nohwnd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nohwnd/subscriptions","organizations_url":"https://api.github.com/users/nohwnd/orgs","repos_url":"https://api.github.com/users/nohwnd/repos","events_url":"https://api.github.com/users/nohwnd/events{/privacy}","received_events_url":"https://api.github.com/users/nohwnd/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T12:58:52Z","updated_at":"2016-05-19T12:58:52Z","body":"@kajbonfils Are you showing a solution or asking a question? :)"}}