Why can I no longer run unit tests from the Resharper test runner?

Things were running fine.  Who knows what changed, but now I end up with:

Unit Test Runner failed to load test assembly:
JetBrains.Resharper.TaskRunnerFramework.TaskException:Exception of type 'Microsoft.VisualStudio.TestTools.CommandLine.CommandLineParameterException' was thrown.

This is Visual Studio 2010. Any suggestions?

4 comments
Comment actions Permalink

Hi Kevin,

I had the same problem. Unfortunately I can't remember how I solved it but I can tell you how I found out what caused the issue.

I would suggest you start Visual Studio with the command line parameter /ReSharper.LogFile. Then you will find a log file from Resharper in %Temp%\JetLog.
Open the log file after you got the error and you will find the answer.

Best regards
Sven

EDIT

After reading Sergeys reply I think I remember my trouble had something to do with a missing testsettings file.

0
Comment actions Permalink

Hello Kevin,

Which version of ReSharper are you using? Are you able to run your tests
with MSTest console runner? Does this happen with any test (even in a newly
created class library project)? Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Things were running fine.  Who knows what changed, but now I end up
with:

Unit Test Runner failed to load test assembly:

JetBrains.Resharper.TaskRunnerFramework.TaskException:Exception of
type
'Microsoft.VisualStudio.TestTools.CommandLine.CommandLineParameterExce
ption' was thrown.

This is Visual Studio 2010. Any suggestions?

---
Original message URL:
http://devnet.jetbrains.net/message/5268545#5268545



0
Comment actions Permalink

Here's some version info:

Microsoft Visual Studio 2010
Version 10.0.30319.1 RTMRel
Microsoft .NET Framework
Version 4.0.30319 RTMRel

Installed Version: Premium

Microsoft Office Developer Tools   01021-532-2002102-70523
Microsoft Office Developer Tools

Microsoft Visual Basic 2010   01021-532-2002102-70523
Microsoft Visual Basic 2010

Microsoft Visual C# 2010   01021-532-2002102-70523
Microsoft Visual C# 2010

Microsoft Visual Studio 2010 Code Analysis Spell Checker   01021-532-2002102-70523
Microsoft Visual Studio 2010 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Microsoft Visual Studio 2010 Team Explorer   01021-532-2002102-70523
Microsoft Visual Studio 2010 Team Explorer

Microsoft Visual Web Developer 2010   01021-532-2002102-70523
Microsoft Visual Web Developer 2010

Crystal Reports Templates for Microsoft Visual Studio 2010   
Crystal Reports Templates for Microsoft Visual Studio 2010

Hotfix for Microsoft Visual Studio 2010 Premium - ENU (KB982218)   KB982218
This hotfix is for Microsoft Visual Studio 2010 Premium - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/982218. ReSharper 5.1   C# Edition build 5.1.1727.12 on 2010-07-07T20:40:20
JetBrains ReSharper 5.1 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2010 JetBrains, Inc.

JetBrains

Microsoft Visual Studio 2010 SharePoint Developer Tools   10.0.30319
Microsoft Visual Studio 2010 SharePoint Developer Tools

Microsoft XNA Game Studio   4.0
Microsoft XNA Game Studio 4.0
Build 4.0.20629.0

SourceGear Vault Visual Studio Enhanced Client   5.0.3.18802
SourceGear Vault Visual Studio Enhanced Client

0
Comment actions Permalink

Fixed!

In my case, I was missing the local.testsettings file.   After finding the right useful thread, it said to just readd one by right clicking on the solution, Add Item, Test, Local settings file.  All's well.

0

Please sign in to leave a comment.