The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Behaviour Spec Organization

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Keith Ray

Posts: 658
Nickname: keithray
Registered: May, 2003

Keith Ray is multi-platform software developer and Team Leader
Behaviour Spec Organization Posted: Jul 26, 2006 8:55 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by Keith Ray.
Original Post: Behaviour Spec Organization
Feed Title: MemoRanda
Feed URL: http://homepage.mac.com/1/homepage404ErrorPage.html
Feed Description: Keith Ray's notes to be remembered on agile software development, project management, oo programming, and other topics.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by Keith Ray
Latest Posts From MemoRanda

Advertisement

DavidChelimsky writing on Behaviour Spec Organization. Quotes:

One of the things that really interests me about the Behaviour Driven Development discussion is the effect it has on how you organize your specs. [...]

The reason that clarity is important is that specs serve as documentation for future development. If you want to understand how to use a class, look at the tests. Right?

# Disclaimer - this is also an example, not a recommendation 
# -- but closer to a recommendation than the example above!

A stack
- should add pushed item to the top of the stack
- should return the top element on peek
- should not remove the top element on peek
- should return the top element on pop
- should remove the top element on pop

An empty stack
- should be empty
- should complain on peek
- should complain on pop

An almost empty stack (with one element)
- should not be empty
- should not be empty after receiving peek
- should be empty after receiving pop

[...]

[...] The generic "A stack" context describes the normal case for how a stack behaves, while the other contexts deal specifically with how a stack at or near a boundary behaves differently from the normal case. This is a far more clear specification [...]

Check It Out

Read: Behaviour Spec Organization

Topic: Borland Exits the IDE Space Previous Topic   Next Topic Topic: Routing Around the Damage

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use