Step Tagging

As of release 2.0.3, StoryQ enables you to "tag" any step with an arbitrary tag. You can use this to categorise & group arbitrary steps. These are conceptually similar to tags on blog engines or twitter.

How to use tags

Adding tags to a step

All steps now have a "Tag" method that takes a string, and returns the step you called the method on:

            new Story("Data Safety").Tag("sprint four")
                .InOrderTo("Keep my data safe")
                .AsA("User").Tag("some other tag")
            //etc...

To make your story code more readable, you could even separate the call to tag with some whitespace

            new Story("Data Safety")                                 .Tag("sprint four")
                .InOrderTo("Keep my data safe")
                .AsA("User")                                         .Tag("some other tag")
            //etc...

Searching by tag

What's the point in adding tags if you can't come back later and find the steps that have been tagged?

Console

When a tagged step is printed to the console, that tag is printed with a # before it to make it easy to search for
Story is Data Safety => (#sprint four)
  In order to Keep my data safe
  As a User => (#some other tag)

Simple HTML Report

Just like the console report, when you use the simple html report, the tags are prefixed with a # to make them easy to "find"

Rich HTML report

The default (javascript enhanced) html report will render a tagcloud that lets you filter the list of stories:

Tags.png

Last edited Mar 18, 2010 at 10:51 AM by robfe, version 4

Comments

No comments yet.