Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Testing Asp.Net MVC Views With ApprovalTests

Jim Counts
October 12, 2012

Testing Asp.Net MVC Views With ApprovalTests

Have you ever heard that views aren't worth testing? What if testing views were easier? I'd like to share what I've learned about testing the V in MVC. I'll show you how tools like ApprovalTests, NCrunch, and CassiniDev can lower the bar for View testing.
Slides for LA CodeCamp 2012

Jim Counts

October 12, 2012
Tweet

More Decks by Jim Counts

Other Decks in Technology

Transcript

  1. HOW HARD CAN IT BE? Automated Testing for ASP.NET MVC

    Views Not Easy (at First) ApprovalTests Library Enables many wonderful testing scenarios Includes a way to test Views View Tests Easy to Repeat Once You Learn How
  2. All Links @ http://tinyurl.com Repo /MVCViewTest Videos @LlewellynFalco /MVCViewTest1 /MVCViewTest2

    @DeadlyApps /MVCViewTest3 @jamesrcounts /MVCViewTest4 Posts Getting Started /MVCViewTest5 Working with Data /MVCViewTest6 Tacking the Build Server /MVCViewTest7 Slides /MVCViewTest8 PLAN Show You Some Links File > New Project Basic View Tests Automated View Tests Tests with Data Make a Few Mistakes
  3. QUESTIONS? IDEAS? About this presentation: @jamesrcounts [email protected] http://ihadthisideaonce.com Anything about

    ApprovalTests: #ApprovalTests @LlewellynFalco Have an Idea? Consider Pairing with Llewellyn