Jon Shute's Weblog : Ramblings on .NET and writing debuggers
Updated: 08/05/2004; 13:43:45.

 

Subscribe to "Jon Shute's Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 
 

12 February 2003

Danno Ferrin: Test Driven Patching. "My proposed solution is submit two patch files, the first one adds the tests and needed API changes needed to compile, and none of the new code for those APIs. The second patch actually contains the code that makes the APIs work." [almostperfect]

An interesting idea. Another idea, which would catch new code not having tests only, is to run coverage analysis before the patch, and then during the patched versions unit test run. If your new patch runs and there's more code that didn't run than before then there are probably no tests and a warning should be flagged up. You could even tie this to your automated build process if you have one.

Of course the ideal solution is to have some software analyse the code paths and then verify that unit tests cover enough of them. The reason that is ideal because if you can get that far then automated unit testing is trivial. I've only ever seen that implemented once so far, and I wasn't impressed. It's not an easy thing to do...


What other blogs are saying about this post.
5:30:26 PM    comment []  trackback []

Mike Krueger:. Mike Krueger is working on a C# port of SWT. Cool. [almostperfect]

And it looks very nice too.


What other blogs are saying about this post.
1:57:42 PM    comment []  trackback []

Edit and Continue for C#... (well maybe).

Alex Lowe:

Edit and Continue will be back......
Edit an Continue will be back in at least VB.NET for version 2.0 and possibly other languages!

C# is fits into the "other languages" category.  Oh, please let it be true!!

[Samer Ibrahim's Blog]

Edit and continue is implemented at the framework level so every language will be able to benefit from it with any luck. There are methods and classes in the debugging API to support it, but they don't do much yet.


What other blogs are saying about this post.
10:35:48 AM    comment []  trackback []

© Copyright 2004 Jon Shute.



Click here to visit the Radio UserLand website.   Listed on BlogShares

 


February 2003
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28  
Jan   Mar