469,623 Members | 1,020 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

Debuging failing tests

bob
Hello,
I've tried a few testing frameworks with C# but so far haven't found a
way to debug into a failing test. I'm used to S Unit (Smalltalk)
where when a test fails you just right click on it and say debug and
the program halts at the point where the test fails. This makes it
very easy to debug the test as you have the stack, locals etc. At
them moment I'm having to recompile the main loop to call the failing
test and put a break in at the point of failure, which clearly is a
nightmare.

Can anyone help?

Thanks in advance

bob
Nov 15 '05 #1
3 1498
Bob,

If this is in VStudio.NET, you can break into the debugger by configuring
the IDE as described at
http://msdn.microsoft.com/library/en...exceptions.asp.

HTH,
Nicole
"bob" <bo**********@hotmail.com> wrote in message
news:b0**************************@posting.google.c om...
Hello,
I've tried a few testing frameworks with C# but so far haven't found a
way to debug into a failing test. I'm used to S Unit (Smalltalk)
where when a test fails you just right click on it and say debug and
the program halts at the point where the test fails. This makes it
very easy to debug the test as you have the stack, locals etc. At
them moment I'm having to recompile the main loop to call the failing
test and put a break in at the point of failure, which clearly is a
nightmare.

Can anyone help?

Thanks in advance

bob

Nov 15 '05 #2
bob
Hi Nicole,
I tried your plan but I couldn't work out what exception was fired.
I'm using CSUnit's Assert like this:

Assert.True(false)

I can't really understand how people debug their tests without the
stack so it must be possible.

Bob

"Nicole Calinoiu" <ni*****@somewhere.net> wrote in message news:<#e**************@TK2MSFTNGP11.phx.gbl>...
Bob,

If this is in VStudio.NET, you can break into the debugger by configuring
the IDE as described at
http://msdn.microsoft.com/library/en...exceptions.asp.

HTH,
Nicole
"bob" <bo**********@hotmail.com> wrote in message
news:b0**************************@posting.google.c om...
Hello,
I've tried a few testing frameworks with C# but so far haven't found a
way to debug into a failing test. I'm used to S Unit (Smalltalk)
where when a test fails you just right click on it and say debug and
the program halts at the point where the test fails. This makes it
very easy to debug the test as you have the stack, locals etc. At
them moment I'm having to recompile the main loop to call the failing
test and put a break in at the point of failure, which clearly is a
nightmare.

Can anyone help?

Thanks in advance

bob

Nov 15 '05 #3
Bob,

This is a CSUnit issue, not a C# issue. There's already a discussion
concerning the issue on the CSUnit forum at
http://groups.yahoo.com/group/csunit/message/326.

Nicole
"bob" <bo**********@hotmail.com> wrote in message
news:b0**************************@posting.google.c om...
Hi Nicole,
I tried your plan but I couldn't work out what exception was fired.
I'm using CSUnit's Assert like this:

Assert.True(false)

I can't really understand how people debug their tests without the
stack so it must be possible.

Bob

"Nicole Calinoiu" <ni*****@somewhere.net> wrote in message

news:<#e**************@TK2MSFTNGP11.phx.gbl>...
Bob,

If this is in VStudio.NET, you can break into the debugger by configuring the IDE as described at
http://msdn.microsoft.com/library/en...exceptions.asp.
HTH,
Nicole
"bob" <bo**********@hotmail.com> wrote in message
news:b0**************************@posting.google.c om...
Hello,
I've tried a few testing frameworks with C# but so far haven't found a
way to debug into a failing test. I'm used to S Unit (Smalltalk)
where when a test fails you just right click on it and say debug and
the program halts at the point where the test fails. This makes it
very easy to debug the test as you have the stack, locals etc. At
them moment I'm having to recompile the main loop to call the failing
test and put a break in at the point of failure, which clearly is a
nightmare.

Can anyone help?

Thanks in advance

bob

Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by mickeyg | last post: by
reply views Thread by FOX User Group | last post: by
18 posts views Thread by Scott David Daniels | last post: by
1 post views Thread by Carlos Albert | last post: by
1 post views Thread by Richard Lewis Haggard | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.