I am filled with solutions

Weekly essays on testability, testing and being a tester.

Screencast: 8 minutes with Visual Studio 2008. Easy unit tests and code coverage.

This week I spent my blogging allowance on creating a screencast. This video shows you how easy it is to create unit tests and measure code coverage in VSTS 2008.

 


Video: Creating unit tests and measuring code coverage in VSTS2008
Published Saturday, February 16, 2008 6:05 AM by SaintD

Comments

 

Team System News said:

Charles Sterling on Fixing the Red Boxes of death in Team Explorer connecting to the Team Foundation...

February 22, 2008 8:59 AM
 

captainjohnhall said:

Random numbers should not be used unless:

(A) You are running a test a large number of times.  Simply putting in a random number and saying 'go' to test the API once doesn't really buy you anything and probably hurts you by making you believe you can avoid the effort of looking for key number ranges to test.

(B) You should always have the ability to repeat a test.  This means the seed should be printed or logged and you should be able to repeat the test with a particular seed.  This is especially important in automated BVT or Stress testing.

April 1, 2008 11:31 AM
 

SaintD said:

John,

Very good points about using random numbers in tests. You also shouldn't use random anything for your BVTs. You should also log any random data you come up with clearly in order to provide repros.

April 1, 2008 1:40 PM
Anonymous comments are disabled

About SaintD

Dustin Andrews has been testing software at Microsoft since 2001. He currently programs primary in C# and has loved it ever since he learned it had a good regex class. He came from the industry where he has been an ISP unix admin, Perl and SQL developer, dev lead, help desk technician and manager. He has also waited tables, worked many long nights as a convenience store clerk disinfected shoes in a bowling alley and done other jobs he has blocked out of his memory. He is currently in the Unlimited Potential Group as a Server Test Lead.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker