TDD

A session at DevSum 2013

Me and my co-worker Jevgeni Tsaikin will be doing the session "Skype for Windows Phone Does TDD" at DevSum 2013.

Join us as we walk you down our path towards Test-Driven Development. Over the last year, as we moved to adopt this approach, we overcame many obstacles, both technical and non-technical. In this session we are going to share the steps we took to making TDD our standard. We will dive into many technical details:

Fixing error C2338: Test writer must define specialization of ToString<> error

Visual Studio 2012 ships with a new Native C++ test framework. When writing tests and hitting a error message like this:
error C2338: Test writer must define specialization of ToString<const Q& q> for your class class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >
__cdecl Microsoft::VisualStudio::CppUnitTestFramework::ToString<SomeType>(const SomeType &).

Are you using Canary tests for complex test?

If not, you should, and here is why, Canary tests is an internal test of your test setup and should be used when you have a complex setup method. The Canary is a internal test of your test setup.

A great example of when a Canary tests should be used, you have some sort of dependency injection with configuration files, and after refactoring you might have changed some names etc invalidating your wiring configuration.

Here is a quick example in C# using MSTest:

Subscribe to RSS - TDD