2

Resolved

Installing kills ReSharper testing totally

description

After I install this plugin, ReSharper does not recognize any tests (I don't get the ReSharper test run icons in the left margin.) This is true even of non-Silverlight tests - all tests are unrecognized. I've tried various combinations of enabling/disabling test engines in the ReSharper options. As soon as I remove AgUnit, everything goes back to working as expected. I've flipped back and forth a few times to confirm: AgUnit .4 installed = no ReSharper testing.

So, as of now this not only doesn't work for the intended purpose, it breaks ReSharper testing completely.

Please help.

file attachments

comments

SDeKock wrote Jul 27, 2011 at 9:01 PM

Are you using visual studio 2008 or 2010 ?

shrog wrote Jul 28, 2011 at 2:55 PM

I have the same problem and i m with VS 2010.

boaterdan wrote Jul 28, 2011 at 5:43 PM

I'm using VS 2010.

FYI - I have several plugins and extensions running like:
PowerCommands for VS 2010
Productivity Power Tools
Telerik extensions
XAML Power Toys 2010

etc.

SDeKock wrote Jul 28, 2011 at 7:50 PM

Can you start visual studio with these command line arguments:
/ReSharper.LogFile "C:\resharper.log" /ReSharper.LogLevel Verbose

This will create a logfile for ReSharper in C:\resharper.log. Please check if there are any exceptions being logged.

shrog wrote Jul 29, 2011 at 7:52 AM

There is the exception.


--- EXCEPTION #1/2 [NullReferenceException]
Message = “Object reference not set to an instance of an object.”
ExceptionPath = Root.InnerException
ClassName = System.NullReferenceException
HResult = COR_E_NULLREFERENCE=E_POINTER=80004003
Source = JetBrains.ReSharper.UnitTestFramework
StackTraceString = “
at JetBrains.ReSharper.UnitTestFramework.UnitTestManager.ProviderEnabled(IUnitTestProvider provider)
 at JetBrains.ReSharper.UnitTestFramework.UnitTestManager.<Explore>b__1f(IUnitTestFileExplorer explorer)
 at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
 at JetBrains.ReSharper.UnitTestFramework.UnitTestManager.Explore(IFile file, CheckForInterrupt interrupt, UnitTestElementConsumer consumer)
 at JetBrains.ReSharper.UnitTestExplorer.UnitTestDaemonProcess.Execute(Action`1 commiter)
 at JetBrains.ReSharper.Daemon.Impl.DaemonProcessBase.<>c__DisplayClasse.<DoHighlighting>b__5(IDaemonStage stage)


--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “Object reference not set to an instance of an object.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.Daemon.Impl.DaemonProcessBase.<>c__DisplayClasse.<DoHighlighting>b__5(IDaemonStage stage)
 at JetBrains.ReSharper.Daemon.Impl.DaemonProcessBase.<>c__DisplayClass19.<DoHighlighting>b__7(IDaemonStage stage)
 at JetBrains.ReSharper.Daemon.Impl.DaemonProcessBase.<>c__DisplayClass19.<>c__DisplayClass1b.<DoHighlighting>b__8()
 at JetBrains.Application.Threading.MultiCoreFibersPool.Fibers.<>c__DisplayClassa.<EnqueueJobImpl>b__8()
 at JetBrains.Application.Threading.MultiCoreFibersPool.FiberProc()
 at JetBrains.Util.Logger.Catch(Action action)
 at JetBrains.Application.Threading.MultiCoreFibersPool.<.ctor>b__1()
 at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Threading.ThreadHelper.ThreadStart()

SDeKock wrote Aug 2, 2011 at 9:42 AM

Are you running any ReSharper plugins other than AgUnit ?

SDeKock wrote Aug 2, 2011 at 11:14 AM

shrog wrote Aug 3, 2011 at 7:48 AM

I have only AgUnit plugin.

SDeKock wrote Aug 4, 2011 at 10:40 PM

I can't seem to reproduce this.

Can you open up the "Unit Testing" screen in the ReSharper options.
Can you tell me which providers are listed, and their status (enabled or disabled).
Try disabling and re-enabling them one by one, see if any of them gives an error.

I'll try to investigate further.

shrog wrote Aug 5, 2011 at 9:36 AM

Same error for each one (I have VS 2010 Pro ) and my resharper version is under Evaluation.

SDeKock wrote Aug 5, 2011 at 11:44 AM

shrog,
  • Can you tell me which providers are listed in the "Unit Testing" settings screen?
  • Are there any other exceptions in the log file? Can you attach your log file to this issue?

shrog wrote Aug 5, 2011 at 3:04 PM

Nunit, MSTEST, QUNIT, SILVERLIGHT

SDeKock wrote Aug 6, 2011 at 5:08 PM

I've found the problem. It's related with the XUnit provider support in AgUnit.
I'm working on a fix, but for now you can resolve the problem by installing the XUnit ReSharper plugin.

SDeKock wrote Aug 6, 2011 at 5:52 PM

Fixed, will be included in release 0.4.1.

SDeKock wrote Aug 9, 2011 at 3:42 PM

The AgUnit 0.4.1 release is available, it includes a fix for this issue.