Integration testing with specs formvc

838 views

Published on

Slides corresponding to my devLink 2012 talk on StructureMap. Get the code at https://github.com/MattHoneycutt/Presentations, and find more info at http://trycatchfail.com. You can find SpecsFor.Mvc at http://specsfor.com.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
838
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Integration testing with specs formvc

  1. 1. Integration Testing WithSpecsFor.Mvc – ASP.NET MVC Testing on Steroids! Matt Honeycutt @matthoneycutt http://trycatchfail.com
  2. 2. What is SpecsFor.Mvc?
  3. 3. What is it?ASP.NET Application Abstraction Over Strongly-Typed APIHost Selenium Web for Browser• Built on IIS Express Driver Automation• Deploy and host your • Handles browser driver • Unit-test like syntax app when you run your management • Navigation and page tests • Abstracts away some manipulation based on• Includes a “stub” SMTP “wonkiness” lambda expressions server
  4. 4. SpecsFor != SpecsFor.Mvc SpecsFor SpecsFor.Mvc Awesome unit Awesome testing integration testing
  5. 5. SpecsFor !=SpecsFor.MvcPURE AWESOME SpecsFor Awesome unit testing SpecsFor.Mvc Awesome integration testing
  6. 6. Automated Acceptance Testing
  7. 7. Why isn’t everyone doingautomated acceptance testing?
  8. 8. Tests should enable change, notdiscourage it.
  9. 9. Good Tests Should NOT:Introduce development frictionBreak when you refactor codeBreak for the wrong reasons
  10. 10. Good Tests SHOULD:Decrease the time between feature inceptionand completed feature live in productionGive you confidenceWork on any machine with minimalconfiguration
  11. 11. AAT with Selenium Web Driver
  12. 12. Support RequestsAs a Fail Tracker user or as a potential user,I want to be able to contact the developmentteam through the Fail Tracker application sothat I can bug them throughout the day.
  13. 13. Limitations: SLOW 1.0 release – still rough! Not flexible
  14. 14. What now? Contributors wanted! http://specsfor.com @matthoneycutt Official home of http://trycatchFAIL.com I might say something Blog, Videos, and More!SpecsFor.Mvc and SpecsFor interesting some day…

×