Skip to content

Commit 50486ec

Browse files
committed
Switch to TestMessageLevel.Warning for discovery exceptions (fixes #62)
1 parent 6bae136 commit 50486ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xunit.runner.visualstudio.testadapter/VsTestRunner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,15 @@ void DiscoverTests<TVisitor>(IEnumerable<string> sources,
150150
String.Format("[xUnit.net {0}] Skipping: {1} (could not find dependent assembly '{2}')", stopwatch.Elapsed, fileName, Path.GetFileNameWithoutExtension(fileLoad.FileName)));
151151
#endif
152152
else
153-
logger.SendMessage(TestMessageLevel.Error,
153+
logger.SendMessage(TestMessageLevel.Warning,
154154
String.Format("[xUnit.net {0}] Exception discovering tests from {1}: {2}", stopwatch.Elapsed, fileName, ex));
155155
}
156156
}
157157
}
158158
}
159159
catch (Exception e)
160160
{
161-
logger.SendMessage(TestMessageLevel.Error,
161+
logger.SendMessage(TestMessageLevel.Warning,
162162
String.Format("[xUnit.net {0}] Exception discovering tests: {1}", stopwatch.Elapsed, e.Unwrap()));
163163
}
164164

0 commit comments

Comments
 (0)