sfeldman.NET

.NET, code, personal thoughts

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

Published Friday, March 14, 2008 6:09 PM by Sean Feldman
Filed under: ,

Comments

# documentation@ Saturday, March 15, 2008 1:58 AM

Pingback from  documentation