try-catch-FAIL

Failure is inevitable

NAVIGATION - SEARCH

SpecsFor.Mvc 1.1 Released

A new release of SpecsFor.Mvc is now live on NuGet.  This release includes one simple, but important, enhancement as well as a few other minor improvements. More...

Using SpecsFor.Mvc - Navigation and Form Submission

This is part two of my series on Using SpecsFor.Mvc to write awesome automated acceptance tests for your ASP.NET MVC application.  In this post, we’ll look at navigating around your app from SpecsFor.Mvc and at how to locate, populate, and submit forms.  More...

A very simple Jasmine runner for ASP.NET Applications

This post is more of a reference for me than anything else.  The Standalone Jasmine runner requires that you manually include any spec files.  That gets pretty annoying.  So, I built a simple ASP.NET WebPages file that can be used with any ASP.NET 4.0+ application as a light-weight, convention-based Jasmine test runner. More...

Using SpecsFor.Mvc - Introduction

It’s been a long time coming, but I finally shipped version 1.0 of SpecsFor.Mvc last week.  There’s a slew of features in this release.  Enough, in fact, for a series of blog posts.  Hence this post!  This is the first of many covering what you can do with SpecsFor.Mvc 1.0.  Read on, and I’ll show you everything that’s in the box! More...

SpecsFor.Mvc 1.0 Released!

It’s late, so this will be a short post, but SpecsFor.Mvc version 1.0 has been released.  It took me a lot longer to wrap this up than I expected, but there are a lot more features in the 1.0 release than I had originally planned.  Overall, I’m very pleased with the end-user experience of the framework, though admittedly the internals of the project are in need of some cleanup and refactoring.  I have a lot of content planned that will highlight what SpecsFor.Mvc can do, but for now, this short video will have to do.  Be sure to watch the video in HD!  Enjoy!

ASP.NET MVC 3, Razor-C#, and VB.NET WebForms - ActionLink, RenderPartial, and RenderAction in WebForms

Today I’m going to show you how to use MVC helper methods in your ASP.NET WebForms markup.  Why would you want to do this?  As I explained and demonstrated in the previous two posts in this series, I’m working on a project that has an extensive investment in WebForms (of the Visual Basic .NET variety), and a wholesale migration to MVC is just not possible.  With a little bit of black magic, I’ve shown you how to write C# MVC code and Razor views that can be consumed via a VB.NET WebForms app.  With this last “spell,” I’ll show you how you can start bringing that content int... [More]

Quick-and-Easy Database Integration Tests with SpecsFor

SpecsFor makes it very easy to bolt on your own conventions, create your own base classes, and extend its behavior to support your specific testing needs.  I’m working on a project that’s built on LINQ to SQL, and I wanted to start creating integration tests around our stored procedures and views.  Here’s the base class I made to handle establishing a database connection, loading in “seed data,” and then cleaning up after each set of specs once they’re finished. More...

ASP.NET MVC 3, Razor-C#, and VB.NET WebForms - Using Razor Views With WebForms Master Pages

When we left off last time, I showed you how to write ASP.NET MVC code in C#, then consume and expose that functionality within a VB.NET WebForms project.  Why?  Because I’m maintaining a project with a huge investment in VB.NET WebForms, and a wholesale migration isn’t feasible.  This approach allows for a gradual migration from VB.NET WebForms to C# ASP.NET (with Razor!)  So far, all I’ve shown you how to do is render Razor views.  But what about all those existing VB.NET master pages?  Today I’ll show you how you can use these master pages as “layouts” for your... [More]