Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 1] New - Code for agiledox-like file export

nspec
Discussion topic

Back to topic list

[Issue 1] New - Code for agiledox-like file export

Reply

Author deadonarrival
Full name Erlend Oftedal
Date 2006-09-12 00:36:11 PDT
Message http://nspec.tigris.​org/issues/show_bug.​cgi?id=1
                 Issue #|1
                 Summary|Code for agiledox-like file export
               Component|NSpec
                 Version|2006.1
                Platform|All
              OS/Version|All
                     URL|http://http://www.of​tedal.no/~erlend/nsp​ec/NSpec.zip
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|FEATURE
                Priority|P3
            Subcomponent|NSpec.Framework
             Assigned to|timhaughton
             Reported by|deadonarrival






------- Additional comments from deadonarrival at tigris dot org Tue Sep 12 00:36:11 -0700 2006 -------
In the zip above, I've added code for creating an agildox-like feature. It
basically creates an additional text-file describing the basic behaviour of your
code.
Let's say you have written behaviour for a Stack:
[Context]
public class StackBehaviour {
        [Specification]
        public void ShouldRemovePoppedElement() {
                ...some code...
        }
        [Specification]
        public void ShouldThrowException​OnPoppingEmptyStack(​) {
                ...some code...
        }
        ...some more specifications...
}

The generated text file will simply contain:

        Stack Behaviour
        * Should Remove Popped Element
        * Should Throw Exception On Popping Empty Stack
        * ... rest of specifications ...

The headers are the name of the classes, and the list elements are the names of
the specifications. This way the behaviour will be really easy to read.

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

[Issue 1] New - Code for agiledox-like file export deadonarrival Erlend Oftedal 2006-09-12 00:36:11 PDT
Messages per page: