As stated here the Spark View Engine’s Visual Studio Integration does not support the ReSharper intellisense code complete mode. This is a HUGE issue for me as I use a  lot of ReSharper templates. Turning off the ReSharper code completion slows me to a crawl because the ReSharper templates no longer work. Major bummer. However, having intellisense in spark files is to die for so I was stuck in one mode or another. To speed up the process of switching between the two modes I wrote a small AHK (Auto Hot Key) script to handle the mode switching for me. By default I stay in the ReSharper...
Read more...
0
Posted on: February 19, 2009
I’m a firm believer in the phrase: “What gets measured gets managed.” When it comes to unit testing code coverage is something we can use to measure how much of our code is under test. By no means does this mean that the code that is under test is actually covered by valid tests that mean anything to the product at hand – it just means at some point during the test execution a path of test code passes through the given line of code. However, it is still important to know what assemblies and code paths are not covered during the testing process so teams can analyze areas that might...
Read more...
A simple tip to exclude certain tests from running during your automated build. In this scenario we have a bunch of tests inside of a particular DLL. Inside of these tests we have a folder that is for “integration tests”. These tests are run usually once a day in a nightly build and are also run on a developers machine to ensure they didn’t break anything from an integration standpoint before checking in the code.   What we want to do is exclude the tests from running in our CC.NET continuous integration build environment. This is real simple to do by just following a couple of...
Read more...
0
Posted on: January 24, 2009
By Donn in TDD
Recently when working with some co-workers I was flying through some menus and whipping out some code at a breakneck speed and a couple asked how I was doing it so quickly. Simple – Resharper’s live templates. I’m surprised I haven’t posted these before, but for whatever reason here they are. The NUnit templates are based off of Bellware’s NUnit snippet library, but I’ve also added some of my own as well as some common Rhino Mocks templates as well. Without any further-ado, here they are. (Download the files at the bottom of this post). The snippets contain the following...
Read more...
I was having a discussion with a colleague last week and we got on the topic of unit testing. What unfolded is what stemmed this post… It started like this… Colleague: “There is no need to test getter’s and setter’s in a property, because ‘I know they work’.” Me: “WHOA WHOA WHOA!! You know they work? How? Please inform me, because I KNOW my code works too, but I also know I MAKE MISTAKES, A LOT OF STUPID MISTAKES… ” The conversation continued and eventually spawned this post … but before we get started, I’d...
Read more...