472,353 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

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 1577
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: mickeyg | last post by:
Is there a way to step thru php application? What tools do I need? I will like to see what lines are being executed and maybe variables values ...
0
by: Paul | last post by:
I'm having problems in getting the tests associated with DBD::mysql. When they are executed, I get the following error repeated many times: ...
0
by: FOX User Group | last post by:
Hi, Migh be this is the stupid question, does anyone know the root cause of the following problem: 1. I create project Web Application, say just...
18
by: Scott David Daniels | last post by:
There has been a bit of discussion about a way of providing test cases in a test suite that _should_ work but don't. One of the rules has been the...
1
by: Carlos Albert | last post by:
Hello group, I have a weird problem with VS2003 & VS2005 using both ASP.NET 1.1 and 2.0, that is that 90% of the times I hit debug, doesn't debug...
0
by: Valentin Guggiana | last post by:
Hi all I build MySQL 5.0.24 as follows: setenv PREFIX /data/mysql-5.0.24 setenv CFLAGS "-O3 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"...
1
by: MLH | last post by:
Hoping one of you can tell me why my XML call is failing... Private Sub Command2_Click() Production.ShippingAPIs.com/ShippingAPI.dll Dim msXML...
2
by: Jeremy Kitchen | last post by:
I have inherited a project and I am trying to figure out why the failing units tests that exist fail. I a, getting the following error when I...
1
by: Richard Lewis Haggard | last post by:
We're using VS05 and today the units tests have stopped working in our development environment. I'm sure that it is something really silly and...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.