{"action":"created","issue":{"url":"https://api.github.com/repos/picklesdoc/pickles/issues/212","labels_url":"https://api.github.com/repos/picklesdoc/pickles/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/picklesdoc/pickles/issues/212/comments","events_url":"https://api.github.com/repos/picklesdoc/pickles/issues/212/events","html_url":"https://github.com/picklesdoc/pickles/issues/212","id":100260302,"number":212,"title":"If test results from MSTest also contains ordinary unit tests results (including to SpecFlow) then pickles fails with NRE","user":{"login":"eugene-sea","id":8311344,"avatar_url":"https://avatars.githubusercontent.com/u/8311344?v=3","gravatar_id":"","url":"https://api.github.com/users/eugene-sea","html_url":"https://github.com/eugene-sea","followers_url":"https://api.github.com/users/eugene-sea/followers","following_url":"https://api.github.com/users/eugene-sea/following{/other_user}","gists_url":"https://api.github.com/users/eugene-sea/gists{/gist_id}","starred_url":"https://api.github.com/users/eugene-sea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugene-sea/subscriptions","organizations_url":"https://api.github.com/users/eugene-sea/orgs","repos_url":"https://api.github.com/users/eugene-sea/repos","events_url":"https://api.github.com/users/eugene-sea/events{/privacy}","received_events_url":"https://api.github.com/users/eugene-sea/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/picklesdoc/pickles/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-11T08:46:09Z","updated_at":"2015-08-12T06:56:01Z","closed_at":null,"body":"In my project I have SpecFlow tests and ordinary unit tests. Thus MSTest test results contains results of both. Unfortunately pickles currently does not handle this scenario.\r\n\r\nOrdinary unit tests may not have \"Description\" element, so MsTestSingleResults.NameOf() fails with NRE for non-SpecFlow unit-tests.\r\n\r\nStack trace of the issue:\r\n<img width=\"734\" alt=\"screen shot 2015-08-11 at 11 44 45 am\" src=\"https://cloud.githubusercontent.com/assets/8311344/9193751/6f51a752-401e-11e5-8cd5-b38d8db06f0f.png\">\r\n\r\nThis may be fixed like this:\r\n\r\n    private IEnumerable<XElement> AllScenariosInResultFile()\r\n    { \r\n        return this.resultsDocument.Root.Descendants(ns + \"UnitTest\").Where(s => s.Element(ns + \"Description\") != null);\r\n    }\r\n\r\nI have added \"Where(...)\" to filter out test results without \"Description\" element. This works fine in my case."},"comment":{"url":"https://api.github.com/repos/picklesdoc/pickles/issues/comments/130191339","html_url":"https://github.com/picklesdoc/pickles/issues/212#issuecomment-130191339","issue_url":"https://api.github.com/repos/picklesdoc/pickles/issues/212","id":130191339,"user":{"login":"eugene-sea","id":8311344,"avatar_url":"https://avatars.githubusercontent.com/u/8311344?v=3","gravatar_id":"","url":"https://api.github.com/users/eugene-sea","html_url":"https://github.com/eugene-sea","followers_url":"https://api.github.com/users/eugene-sea/followers","following_url":"https://api.github.com/users/eugene-sea/following{/other_user}","gists_url":"https://api.github.com/users/eugene-sea/gists{/gist_id}","starred_url":"https://api.github.com/users/eugene-sea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugene-sea/subscriptions","organizations_url":"https://api.github.com/users/eugene-sea/orgs","repos_url":"https://api.github.com/users/eugene-sea/repos","events_url":"https://api.github.com/users/eugene-sea/events{/privacy}","received_events_url":"https://api.github.com/users/eugene-sea/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T06:56:01Z","updated_at":"2015-08-12T06:56:01Z","body":"Yes, I will do in few days"}}