Skip to content

Commit

Permalink
Switch to TestMessageLevel.Warning for discovery exceptions (fixes #62
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bradwilson committed May 3, 2015
1 parent 6bae136 commit 50486ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xunit.runner.visualstudio.testadapter/VsTestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ void DiscoverTests<TVisitor>(IEnumerable<string> sources,
String.Format("[xUnit.net {0}] Skipping: {1} (could not find dependent assembly '{2}')", stopwatch.Elapsed, fileName, Path.GetFileNameWithoutExtension(fileLoad.FileName)));
#endif
else
logger.SendMessage(TestMessageLevel.Error,
logger.SendMessage(TestMessageLevel.Warning,
String.Format("[xUnit.net {0}] Exception discovering tests from {1}: {2}", stopwatch.Elapsed, fileName, ex));
}
}
}
}
catch (Exception e)
{
logger.SendMessage(TestMessageLevel.Error,
logger.SendMessage(TestMessageLevel.Warning,
String.Format("[xUnit.net {0}] Exception discovering tests: {1}", stopwatch.Elapsed, e.Unwrap()));
}

Expand Down

0 comments on commit 50486ec

Please sign in to comment.