Thanks Houston TechFest!

This past weekend I gave a talk on one of my favorite topics – UI testing.  In it, I focused almost exclusively on techniques for authoring maintainable UI tests, and how design for testability extends to views, models and controllers in MVC land.  It’s trivial to write UI tests that break easily, but not much more difficult to write maintainable tests, given that you’ve intentionally designed your UI layer for UI testability.

Big thanks to the Houston TechFest organizers, who put on a fantastic conference, and to all the attendees, who had to put up with me for an hour.  For those that are interested, you can find the code and slides here:

Testing the Last Mile in ASP.NET MVC code and slides

I had a lot of people asking about the wrappers on top of our browser automation tool, WatiN, and if they were open source.  The answer is no, not yet, but we’re working on it.  A quick road to fragile UI tests is browser automation code directly in your UI tests, so the sample code provided should at least provide some ideas and guidance to craft your own wrappers.  And as always, my door is always open for questions.  My email door, at least.

The case for two-way mapping in AutoMapper