I am currently running unit tests and I would like to log the results to the database. My tests are using specflow configured to convert the specs to MsTest.
My current method of determining test result:
* Check ScenarioContext.Current.TestError
* If it's null, the test passed
* If there's an error, check if the message contains "inconclusive" or "skipped" (this gets logged as inconclusive)
* Otherwise, the test gets logged as a failure
But this method seems really hacky to me. Is there a field somewhere that just tells me Fail Pass or Inconclusive, so I don't have to figure it out in a roundabout way?