[221][220] Debug Unit Test

I'm using VS2003.
Way to reproduce the behaviour:
- set a breakpoint
- start the unit test debug
- when the execution break at the break point stop the debug with the VS Stop button.
- At this point the "unit test runner" windows reappairs with the "stop" button enabled.
- If you try to rerun the test, in normal or in debug mode, or if you try to use the "stop" button of the "unit test runner" window, all the button in that window are disabled and, in this way, we reach the dead point.

Closing and restarting the ide fix the bug.

Bye,
Antonio

4 comments
Comment actions Permalink

Hello Antonio,

in this scenario, the 'Stop' button should be disabled on Unit Test Runner
toolbar after you
have stopped debugging, and all other buttons should be enabled. Does the
problem happen with a simple
project?

We added an extra diagnostics to the code, and in the next build you'll be
able to send us the log file (ReSharper|Show Log) containing diagnostic messages.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I'm using VS2003.

Way to reproduce the behaviour:

- set a breakpoint

- start the unit test debug

- when the execution break at the break point stop the debug with the
VS Stop button.

- At this point the "unit test runner" windows reappairs with the
"stop" button enabled.

- If you try to rerun the test, in normal or in debug mode, or if you
try to use the "stop" button of the "unit test runner" window, all the
button in that window are disabled and, in this way, we reach the dead
point.

Closing and restarting the ide fix the bug.

Bye,
Antonio



0
Comment actions Permalink

I can reproduce the issue with this example too:

	/// Summary description for Class1.
	/// 
	public class Class1
	{
		public void Test()
		{
			Console.Write("test");
		}
	}
	
	[TestFixture]
	public class TestClass1
	{
		[Test]
		public void Test()
		{
			Class1 test = new Class1();
			test.Test();
			Assert.IsTrue(true);
		}
	}
}]]>

set the breakpoint in the "Console.Write("test");" line

here is the diagnostics messages:

0
Comment actions Permalink

Perhaps I was unclear about diagnostic messages - actually unit test-related
messages will only appear
in the next build (222), please check this problem with it as soon as it
is available.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I can reproduce the issue with this example too:

 using NUnit.Framework;
> namespace ClassLibrary2
> {
> /// 
> /// Summary description for Class1.
> /// 
> public class Class1
> {
> public void Test()
> {
> Console.Write("test");
> }
> }
> [TestFixture]
> public class TestClass1
> {
> [Test]
> public void Test()
> {
> Class1 test = new Class1();
> test.Test();
> Assert.IsTrue(true);
> }
> }
> }]]>

set the breakpoint in the "Console.Write("test");" line

here is the diagnostics messages:

 12.44.45: Thread:2332: End command:VS Command, nesting level:1
> 12.44.45: Thread:2332: Begin command:VS Command, nesting level:0
> 12.44.45: Thread:2332: End command:VS Command, nesting level:1
> 12.44.45: Thread:2332: Begin command:VS Command, nesting level:0
> 12.44.45: Thread:2332: End command:VS Command, nesting level:1
> 12.44.45: Thread:2332: Begin command:VS Command, nesting level:0
> 12.44.45: Thread:2332: End command:VS Command, nesting level:1
> 12.44.48: Thread:2332: Begin command:VS Command, nesting level:0
> 12.44.48: Thread:2332: End command:VS Command, nesting level:1
> 12.44.48: Thread:2332: Begin command:VS Command, nesting level:0
> 12.44.48: Thread:2332: End command:VS Command, nesting level:1
> 12.44.49: Thread:2332: Could not find project
> ClassLibrary2\ClassLibrary2.csproj
> 12.44.49: Thread:2332: DefaultAssemblyResolver: resolving assembly
> mscorlib, Version=1.0.5000.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089
> 12.44.49: Thread:2332: DefaultAssemblyResolver: searching in
> C:\WINNT\Microsoft.NET\Framework\v1.1.4322\
> 12.44.49: Thread:2332: DefaultAssemblyResolver: better candidate name
> C:\WINNT\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll
> 12.44.49: Thread:2332: DefaultAssemblyResolver: searching in
> D:\Progetti\ParserDocumenti\Solution1\ClassLibrary2\bin\Debug
> System.IO.FileNotFoundException: The system cannot find the file
> specified.
> at
> JetBrains.ReSharper.Metadata.Access.IMetaDataDispenserEx.OpenScope(Str
> ing file, UInt32 flags, Guid& iid, Object& scope)
> at
> JetBrains.ReSharper.Metadata.Access.MetadataProvider.GetFromFile(Strin
> g path) in
> c:\TEMP\tmp3A4C.tmp\src\Metadata\src\Access\MetadataProvider.cs:line
> 36
> 12.44.49: Thread:2332: DefaultAssemblyResolver: could not load
> assembly info from
> D:\Progetti\ParserDocumenti\Solution1\ClassLibrary2\bin\Debug\mscorlib
> .dll
> 12.44.49: Thread:2332: DefaultAssemblyResolver: resolving assembly
> nunit.framework, Version=2.2.7.0, Culture=neutral,
> PublicKeyToken=96d09a1eb7f44a77
> 12.44.49: Thread:2332: DefaultAssemblyResolver: searching in
> C:\WINNT\Microsoft.NET\Framework\v1.1.4322\
> System.IO.FileNotFoundException: The system cannot find the file
> specified.
> at
> JetBrains.ReSharper.Metadata.Access.IMetaDataDispenserEx.OpenScope(Str
> ing file, UInt32 flags, Guid& iid, Object& scope)
> at
> JetBrains.ReSharper.Metadata.Access.MetadataProvider.GetFromFile(Strin
> g path) in
> c:\TEMP\tmp3A4C.tmp\src\Metadata\src\Access\MetadataProvider.cs:line
> 36
> 12.44.49: Thread:2332: DefaultAssemblyResolver: could not load
> assembly info from
> C:\WINNT\Microsoft.NET\Framework\v1.1.4322\nunit.framework.dll
> 12.44.49: Thread:2332: DefaultAssemblyResolver: searching in
> D:\Progetti\ParserDocumenti\Solution1\ClassLibrary2\bin\Debug
> System.IO.FileNotFoundException: The system cannot find the file
> specified.
> at
> JetBrains.ReSharper.Metadata.Access.IMetaDataDispenserEx.OpenScope(Str
> ing file, UInt32 flags, Guid& iid, Object& scope)
> at
> JetBrains.ReSharper.Metadata.Access.MetadataProvider.GetFromFile(Strin
> g path) in
> c:\TEMP\tmp3A4C.tmp\src\Metadata\src\Access\MetadataProvider.cs:line
> 36
> 12.44.49: Thread:2332: DefaultAssemblyResolver: could not load
> assembly info from
> D:\Progetti\ParserDocumenti\Solution1\ClassLibrary2\bin\Debug\nunit.fr
> amework.dll
> 
> 12.44.49: Thread:2332: Could not load referenced assembly
> nunit.framework, Version=2.2.7.0, Culture=neutral,
> PublicKeyToken=96d09a1eb7f44a77 (23000002, from ClassLibrary2,
> Version=1.0.2258.22944, Culture=neutral)
> 
> 12.44.50: Thread:2332: Could not find project
> ClassLibrary2\ClassLibrary2.csproj
> 
> 12.44.50: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.50: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.50: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.50: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.51: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.51: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.51: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.51: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.52: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.52: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.52: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.52: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.52: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.52: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.52: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.52: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.53: Thread:2332: Diff = 1703.125
> 
> 12.44.53: Thread:2332: Diff = 1703.125
> 
> 12.44.53: Thread:2332: Diff = 1703.125
> 
> 12.44.53: Thread:2332: Diff = 1703.125
> 
> 12.44.53: Thread:2332: Diff = 1703.125
> 
> 12.44.54: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.54: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.54: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.54: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.54: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.54: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.54: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.54: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.54: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.54: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.54: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.54: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.54: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.54: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.55: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.55: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.55: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.55: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.56: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.56: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.56: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.56: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.57: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.57: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.57: Thread:2332: Begin command:VS Command, nesting level:0
> 
> 12.44.57: Thread:2332: End command:VS Command, nesting level:1
> 
> 12.44.58: Thread:2332: Diff = 1218.75
> 
> 12.44.58: Thread:2332: Diff = 1218.75
> 
> 12.44.58: Thread:2332: Diff = 1218.75
> 
> 12.44.58: Thread:2332: Diff = 1218.75
> 
> 12.44.58: Thread:2332: Diff = 1218.75
> 
> ]]>



0
Comment actions Permalink

here is the log with the 222 build



Attachment(s):
ReSharperDebugUnitTests.Log
0

Please sign in to leave a comment.