{"action":"created","issue":{"url":"https://api.github.com/repos/daisy/xprocspec/issues/40","repository_url":"https://api.github.com/repos/daisy/xprocspec","labels_url":"https://api.github.com/repos/daisy/xprocspec/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/daisy/xprocspec/issues/40/comments","events_url":"https://api.github.com/repos/daisy/xprocspec/issues/40/events","html_url":"https://github.com/daisy/xprocspec/issues/40","id":141221213,"number":40,"title":"Should xfail handle errors?","user":{"login":"bertfrees","id":1167989,"avatar_url":"https://avatars.githubusercontent.com/u/1167989?v=3","gravatar_id":"","url":"https://api.github.com/users/bertfrees","html_url":"https://github.com/bertfrees","followers_url":"https://api.github.com/users/bertfrees/followers","following_url":"https://api.github.com/users/bertfrees/following{/other_user}","gists_url":"https://api.github.com/users/bertfrees/gists{/gist_id}","starred_url":"https://api.github.com/users/bertfrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertfrees/subscriptions","organizations_url":"https://api.github.com/users/bertfrees/orgs","repos_url":"https://api.github.com/users/bertfrees/repos","events_url":"https://api.github.com/users/bertfrees/events{/privacy}","received_events_url":"https://api.github.com/users/bertfrees/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-16T09:50:11Z","updated_at":"2016-03-16T11:18:46Z","closed_at":null,"body":"If a test throws an error which is an expected failure, the test currently fails even if the xfail attribute is used.\r\n\r\nPutting the attribute on an \"errors\" x:expect works:\r\n\r\n```xml\r\n<x:context label=\"errors\">\r\n  <x:document type=\"errors\"/>\r\n</x:context>\r\n<x:expect type=\"count\" label=\"the step should execute successfully without throwing any errors\" max=\"0\" xfail=\"true\"/>\r\n```\r\n\r\nbut only if the `x:expect` with the actual comparison is removed which is unpractical."},"comment":{"url":"https://api.github.com/repos/daisy/xprocspec/issues/comments/197270751","html_url":"https://github.com/daisy/xprocspec/issues/40#issuecomment-197270751","issue_url":"https://api.github.com/repos/daisy/xprocspec/issues/40","id":197270751,"user":{"login":"bertfrees","id":1167989,"avatar_url":"https://avatars.githubusercontent.com/u/1167989?v=3","gravatar_id":"","url":"https://api.github.com/users/bertfrees","html_url":"https://github.com/bertfrees","followers_url":"https://api.github.com/users/bertfrees/followers","following_url":"https://api.github.com/users/bertfrees/following{/other_user}","gists_url":"https://api.github.com/users/bertfrees/gists{/gist_id}","starred_url":"https://api.github.com/users/bertfrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertfrees/subscriptions","organizations_url":"https://api.github.com/users/bertfrees/orgs","repos_url":"https://api.github.com/users/bertfrees/repos","events_url":"https://api.github.com/users/bertfrees/events{/privacy}","received_events_url":"https://api.github.com/users/bertfrees/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T11:18:46Z","updated_at":"2016-03-16T11:18:46Z","body":"The example above works, but I shouldn't have to remove to x:expect that verifies the result port. Currently I have to remove it because there is no document on the result port because there was an error."}}