{"action":"created","issue":{"url":"https://api.github.com/repos/mmanela/chutzpah/issues/390","labels_url":"https://api.github.com/repos/mmanela/chutzpah/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/mmanela/chutzpah/issues/390/comments","events_url":"https://api.github.com/repos/mmanela/chutzpah/issues/390/events","html_url":"https://github.com/mmanela/chutzpah/issues/390","id":103355754,"number":390,"title":"Unexpected console.log in tests using Jasmine and Chutzpah","user":{"login":"rajsite","id":1588923,"avatar_url":"https://avatars.githubusercontent.com/u/1588923?v=3","gravatar_id":"","url":"https://api.github.com/users/rajsite","html_url":"https://github.com/rajsite","followers_url":"https://api.github.com/users/rajsite/followers","following_url":"https://api.github.com/users/rajsite/following{/other_user}","gists_url":"https://api.github.com/users/rajsite/gists{/gist_id}","starred_url":"https://api.github.com/users/rajsite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajsite/subscriptions","organizations_url":"https://api.github.com/users/rajsite/orgs","repos_url":"https://api.github.com/users/rajsite/repos","events_url":"https://api.github.com/users/rajsite/events{/privacy}","received_events_url":"https://api.github.com/users/rajsite/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-26T20:19:25Z","updated_at":"2015-09-02T01:02:26Z","closed_at":null,"body":"When using Chutzpah to run jasmine tests I see unexpected console.log messages.\r\n\r\ntest:\r\n\r\n```javascript\r\nexpect(console.log.calls.count()).toEqual(1);\r\nconsole.info('[call count]', console.log.calls.count(), '[num calls history]', console.log.calls.allArgs().length, '[all calls as string]', console.log.calls.allArgs().join('<==seperator==>'));\r\n```\r\n\r\noutput:\r\n```\r\nLog Message: [call count] 2 [num calls history] 2 [all calls as string] !!_!! isTestingDone<==seperator==>(removed expected single console log message) from (removed filename).js\r\n```\r\n\r\nMy guess is the following lines are adding the unexpected console log messages:\r\nhttps://github.com/mmanela/chutzpah/blob/master/Chutzpah/JSRunners/jasmineRunnerV2.js#L14\r\n\r\nI have many tests that observe the console.log messages and what I find strange it that only two tests actually have the extra log messages from jasmineRunner showing up in them. Not sure why more haven't failed up to this point yet.\r\n\r\nEither way it seems like the extra logs are probably unnecessary in jasmineRunner.\r\n\r\nChutzpah 3.2.5"},"comment":{"url":"https://api.github.com/repos/mmanela/chutzpah/issues/comments/136906721","html_url":"https://github.com/mmanela/chutzpah/issues/390#issuecomment-136906721","issue_url":"https://api.github.com/repos/mmanela/chutzpah/issues/390","id":136906721,"user":{"login":"mmanela","id":304410,"avatar_url":"https://avatars.githubusercontent.com/u/304410?v=3","gravatar_id":"","url":"https://api.github.com/users/mmanela","html_url":"https://github.com/mmanela","followers_url":"https://api.github.com/users/mmanela/followers","following_url":"https://api.github.com/users/mmanela/following{/other_user}","gists_url":"https://api.github.com/users/mmanela/gists{/gist_id}","starred_url":"https://api.github.com/users/mmanela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmanela/subscriptions","organizations_url":"https://api.github.com/users/mmanela/orgs","repos_url":"https://api.github.com/users/mmanela/repos","events_url":"https://api.github.com/users/mmanela/events{/privacy}","received_events_url":"https://api.github.com/users/mmanela/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T01:02:26Z","updated_at":"2015-09-02T01:02:26Z","body":"Ok, I re-read your question and this is expected. Chutzpah using console.log to send information from PhantomJS.exe to Chutzpah. Chutzpah usually hides the messages from the user BUT the code you have reveals them."}}