Wednesday 1 June 2011

BDD?

Feature: Acceptance Testing
    In order to spend more time doing the things I enjoy
    As a developer
    I want to spend less time remembering to run a set of tedious manual tests


    Scenario: Feature Testing
        Given I have worked out how to test a new feature
        When I complete the new feature, passing the test
        Then I should be able to move on to something more interesting, safe in the knowledge the feature is tested, correct and complete



    Scenario: Regression Testing
        Given I have implemented a feature
        When I complete testing the first time
        Then I should never have to do it again, via dull tests for regressions


No comments: