Friday, March 14, 2008 6:09 PM Sean Feldman

Testing - Specs Style

Something I have learned from JP Boodhoo lately (and NOT the only thing):

Filename: {SomeComponent}Specs

    TestFixture: When{specification}

SetUp: establish the context

Test: Should {expected behaviour}

SUT: exercised component

   TestFixture: When {next specification}

 

Something like SpecUnit.NET would produce

SomeComponentSpecs

  • When specification
    • Should expected behaviour
  • When next specification
    • Should
    • Should

Intent-revealing documentation/report

Filed under: ,

Comments

# documentation

Saturday, March 15, 2008 1:58 AM by documentation

Pingback from  documentation

Leave a Comment

(required) 
(required) 
(optional)
(required)