{"action":"created","issue":{"url":"https://api.github.com/repos/philsquared/Catch/issues/297","repository_url":"https://api.github.com/repos/philsquared/Catch","labels_url":"https://api.github.com/repos/philsquared/Catch/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/philsquared/Catch/issues/297/comments","events_url":"https://api.github.com/repos/philsquared/Catch/issues/297/events","html_url":"https://github.com/philsquared/Catch/issues/297","id":38807576,"number":297,"title":"Failures in Visual Studio Errors List?","user":{"login":"stevefolly","id":1692460,"avatar_url":"https://avatars.githubusercontent.com/u/1692460?v=3","gravatar_id":"","url":"https://api.github.com/users/stevefolly","html_url":"https://github.com/stevefolly","followers_url":"https://api.github.com/users/stevefolly/followers","following_url":"https://api.github.com/users/stevefolly/following{/other_user}","gists_url":"https://api.github.com/users/stevefolly/gists{/gist_id}","starred_url":"https://api.github.com/users/stevefolly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevefolly/subscriptions","organizations_url":"https://api.github.com/users/stevefolly/orgs","repos_url":"https://api.github.com/users/stevefolly/repos","events_url":"https://api.github.com/users/stevefolly/events{/privacy}","received_events_url":"https://api.github.com/users/stevefolly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2014-07-26T06:11:38Z","updated_at":"2016-10-21T09:32:30Z","closed_at":null,"body":"Is it possible to configure Catch to display test failures in the Visual Studio 'Error List' window?\r\n\r\nI tried setting the passOrFail text in the AssertionPrinter to \"ERROR\" instead of \"FAILURE\" and it sort of worked, but there was no detail about the expression.\r\n\r\nThe \"test case already defined\" error is the sort of thing I'm looking for for test failures.\r\n\r\n(I'm using Build 52.)\r\n\r\nThanks. "},"comment":{"url":"https://api.github.com/repos/philsquared/Catch/issues/comments/255336958","html_url":"https://github.com/philsquared/Catch/issues/297#issuecomment-255336958","issue_url":"https://api.github.com/repos/philsquared/Catch/issues/297","id":255336958,"user":{"login":"garethsb","id":710578,"avatar_url":"https://avatars.githubusercontent.com/u/710578?v=3","gravatar_id":"","url":"https://api.github.com/users/garethsb","html_url":"https://github.com/garethsb","followers_url":"https://api.github.com/users/garethsb/followers","following_url":"https://api.github.com/users/garethsb/following{/other_user}","gists_url":"https://api.github.com/users/garethsb/gists{/gist_id}","starred_url":"https://api.github.com/users/garethsb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethsb/subscriptions","organizations_url":"https://api.github.com/users/garethsb/orgs","repos_url":"https://api.github.com/users/garethsb/repos","events_url":"https://api.github.com/users/garethsb/events{/privacy}","received_events_url":"https://api.github.com/users/garethsb/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T09:32:30Z","updated_at":"2016-10-21T09:32:30Z","body":"> I tried setting the passOrFail text in the AssertionPrinter to \"ERROR\" instead of \"FAILURE\" and it sort of worked, but there was no detail about the expression.\r\n\r\nUsing the CompactReporter (--reporter compact) and changing its failedString() to \"error\" is enough to get Visual Studio to show failures in the Errors list.\r\n\r\n@philsquared this seems like a trivial change that's a win for VS users. Or at least make it possible to configure the failedString() easily in a derived custom reporter?\r\n\r\nNote that while Visual Studio recognises the words \"error\" and \"warning\" in the console output and adds entries to the Error Lists > Errors and Warnings lists, and ignores everything else (hence \"FAILED\" being ignored), there isn't anything that will cause it to put an entry in the Messages list. On the other hand, Xcode on the Mac last time I checked, handles \"error\", \"warning\" and \"note\", and treats everything else as an error.\r\n\r\nWhat do people think about whether CompactReporter should convert newlines in the expansion text to make single-line output?\r\n"}}
{"actor":{"display_login":"garethsb"}}