I’ve been thinking a lot lately about the current short-comings of SpecsFor. While I’m pretty happy with the end-user experience, the internals have become complex and confused. I’m also encountering new testing scenarios as I’m writing more and more full integration specs with SpecsFor, and I’m finding that SpecsFor isn’t able to help with those…
try-catch-FAIL
Month: <span>April 2012</span>
Using SpecsFor.Mvc – Dealing with Authentication
In all of the SpecsFor.Mvc examples I’ve posted so far, I’ve omitted one common cross-cutting requirement of web applications: authentication! Most web apps have some sort of authentication, and we need to be able to test our core application logic without this cross-cutting concern getting in the way. SpecsFor.Mvc makes it easy to achieve exactly…
Using SpecsFor.Mvc – Reading Data
So far in the “Using SpecsFor.Mvc" series, I’ve shown you how to navigate using the strongly-typed API and how to fill out and submit forms. In part three of my series, I’ll show you how to create automated acceptance tests for your ASP.NET MVC application that verify expected data is displayed on a page. [more]…
… are we really arguing about semicolons now?
I know I’m late to the party, but this issue reported in Bootstrap has created quite a stir across the Interwebs and Twitterverse. Chants of “Down with Semicolons!” by the “JsHipsters” and of “LEARN 2 CODE NEWB” by the “JsVets,” though entertaining, aren’t really doing anyone in the community any good. [more] Let’s look at…
Introducing MvcDisplayTemplates
Beginning with version 2.0, ASP.NET MVC has shipped with a set of templates for both displaying and editing data. These templates are buried within the System.Web.Mvc assembly. While you can override them outright, you cannot easily extend them since they’re locked down. The new MvcDisplayTemplates NuGet package fixes this problems. [more] If you’re not already…
Random Thoughts
Here are some random thoughts that have been bouncing around my head for the last couple of days. Keep your codebase in a releasable state. If you are practicing scrum or some other iterative process, make sure your code is releasable at the end of an iteration. I’m not exactly sure what you do if…