Wednesday, 6 June 2012

Are Unit Tests in MSVS 2010 Ready for Prime-Time?

What happens when you create a new Visual Studio Test Project is TWO FILES get automatically generated. These are:
  • project.vsmdi
  • Local.testsettings
which appear under a "Solution Items" folder. The vsmdi is an XML metadata file which stores information about the tests list. Unit tests are stored in .cs files and web performance test files have the suffix .webtest, and .generictest for the "generic test" test type (kind of a "wrapper" for other tests). We'll focus our scrutiny on unit tests, giving scant attention to the so-called "generic tests".

FYI MSVS is a little rigid when it comes to unit testing. Whether you choose to use its features is something only you can decide. MS also have a product called MTM (Microsoft Test Manager) sold separately from Visual Studio main-line. Do you really want all that yarn or maybe just stick with nunit - the original TDD product for Dot net. To learn more about TDD, you may want to glance at the haphazard (but useful!) wiki entry on the same.

No comments: