• Lars Erik Aabech


Unit testing Umbraco

Session topics: .net,c#,testing

Automated tests for software has become the de facto standard for professional development. For web and apps as well as traditional software. Using the best CMS out there is no excuse.

The code we write for it is just as important to test. Many will give up though. Unit testing can be hard to get good at in itself, and when tightly coupled code looms ahead it might be even easier to let it go. Umbraco is no different - it's has had its ups and downs with respect to testability. However, hope is not lost for us Umbracians.

This session will show you how to write tests for the bits and pieces developers most often write for Umbraco.

  • We'll start out by looking at unit testing in general, the different camps, and a bit about what to test and how to do it.
  • There'll be a short introduction to code coupling and dependency inversion. Why it matters with Umbraco, and how mocking and stubbing can help us out.
  • We'll look at the core's current status and how to lean on the core test library.
  • We'll go through testing the most used base classes in Umbraco
  • We'll have a look at also unit testing our backoffice UI code (JavaScript)
  • When you walk out, you'll have no excuse for not automating your testing.