Skip to content

Commit

Permalink
Removed exception catching and error reporting in GetRunnerFor, since…
Browse files Browse the repository at this point in the history
… both calling methods have the same. #302
  • Loading branch information
OsirisTerje committed Jul 25, 2017
1 parent add074d commit 11cd679
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/NUnitTestAdapter/NUnitTestAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,7 @@ protected void Initialize(IDiscoveryContext context, IMessageLogger messageLogge
protected ITestRunner GetRunnerFor(string assemblyName)
{
var package = CreateTestPackage(assemblyName);

try
{
return TestEngine.GetRunner(package);
}
catch (Exception ex)
{
TestLog.Error("Error: Unable to get runner for this assembly. Check installation, including any extensions.");
TestLog.Error(ex.GetType().Name + ": " + ex.Message);
throw;
}
return TestEngine.GetRunner(package);
}

private TestPackage CreateTestPackage(string assemblyName)
Expand Down

0 comments on commit 11cd679

Please sign in to comment.