Skip to content

Adding 'Living Documentation' to BDDfy #211

@liammclennan

Description

@liammclennan

I like the notion of 'living documentation' as provided by http://www.relishapp.com/ and http://getgauge.io/, however I think BDDfy has the correct model (code -> documentation).

I'd like to add support for including markdown in the story class comments, and step method comments. The content then obviously flows through to the report. I've not investigated in depth, but I think this should be possible for both fluent and reflective syntaxes.

When I start a new development project I'd like to start by defining all of my stories and scenarios, complete with all known requirements, screenshots, links etc, and generating the report. From then on that document serves as a complete view of the project, its requirements and status.

The implementation is slightly complicated because comments are not available via reflection. It could be done by parsing source (ala http://dontangg.github.io/nocco/#section_5) but my preference is to rely on xml documentation and /// commments, that way msbuild deals with the parsing and source code is not required.

Generating the html report would require a Markdown->Html component, such as https://github.com/Knagis/CommonMark.NET/ or http://www.toptensoftware.com/markdowndeep/.

If I implement this will it get merged?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions