Specflow: One Step closer to Executable Specifications

2,189 views
2,135 views

Published on

(see http://chicagoalt.net/event/october-2010-meeting-specflow--one-step-closer-to-executable-specifications)
What if you could take the lessons you've learned with Test Driven Development to a whole new level? What if in this new paradigm you were able to involve business users much closer to your development process? What if you and your business users could reduce the number of conversions between the spoken language and the implemented behavior of the application?

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,189
On SlideShare
0
From Embeds
0
Number of Embeds
123
Actions
Shares
0
Downloads
20
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Specflow: One Step closer to Executable Specifications

  1. 1. One Step closer to Executable Specifications<br />Chicago ALT.NET, October 13th 2010<br />Sergio Pereira<br />
  2. 2. Sergio Pereira<br /> sergio@sergiopereira.com<br /> http://sergiopereira.com/blog<br /> @sergiopereira<br />
  3. 3. One Step closer to Executable Specifications<br />Chicago ALT.NET, October 13th 2010<br />Sergio Pereira<br />
  4. 4. DEMO<br />Already?<br />
  5. 5. <ul><li>http://specflow.org
  6. 6. BSD License
  7. 7. Visual Studio integration
  8. 8. NUnit</li></li></ul><li>Origins and Ideas<br /><ul><li>BDD (RSpec)
  9. 9. Outside-in development
  10. 10. HumanreadableAcceptance Tests
  11. 11. Executable</li></li></ul><li>HumanReadable?<br />Feature: Product Sale<br /> In order satisfy my thirst<br /> As a customer<br /> I want to purchase beverages from the machine<br />Scenario: Inserting exact dollar amount<br />GivenI am at the home page<br />AndThe Diet Coke costs $0.75<br />AndI added $0.75 in credit<br />WhenI press the Buy Diet Coke button<br />ThenI should arrive at the Thank You! page<br />Gherkin<br />
  12. 12. Gherkin<br /><ul><li>Plain text
  13. 13. 37 languages
  14. 14. Feature (.feature files)
  15. 15. Background
  16. 16. Scenarios
  17. 17. Steps (Given, When, Then)</li></li></ul><li>Executable?<br /><ul><li>Cucumber(Ruby)
  18. 18. SpecFlow(.NET)
  19. 19. Cuke4Duke (Ruby + Java)
  20. 20. Cuke4Nuke (Ruby + .NET)
  21. 21. StorEvil(.NET)</li></li></ul><li>Outside-in Testing<br />Walk in youruser'sshoes<br />Implementationdetails are less important<br />(But theyshouldbetested; just not withthis)<br />Focus in the user's interactions with the app<br />
  22. 22. DEMO<br />SpecFlow in practice<br />
  23. 23. Questions?<br />

×