Testing Your Javascript Code with Jasmine

Rick HerrmannI find myself writing more javascript code these days.  So with more functionality and business rule logic moving to the client side – we need a way to test this code.  There are numerous javascript testing tools that have sprung up in the last year or so.  One of the more popular ones is Jasmine (http://pivotal.github.com/jasmine/).  Jasmine is a BDD style framework for unit testing javascript.  To get started you can download the zip file from GitHub (https://github.com/pivotal/jasmine/downloads).

Continue reading “Testing Your Javascript Code with Jasmine”

BDD in .NET with NSpec

Rick HerrmannI started including unit testing as part of my development routine four years ago. Like a lot of developers, I struggled at first to know what to test and how to make my code more testable. In the .NET space the common approach is to use a lot of interfaces and dependency injection to help keep your code loosely coupled and easier to test.

 
Continue reading “BDD in .NET with NSpec”