.NetSpecExporter

.NetSpecExporter will generate an AgileDox-like listing of the expected behavior from your test classes. It does not require you to actually use .NetSpec as it uses the Microsoft unit testing framwork's attributes when generating the output.
It can also parse testresult (.trx) files from Visual studio or team builds and present them in an easy to read format.

Usage

Command line: Usage: NetSpecExporter [-xml] <full path or filename of assembly or .trx testresult file>

Result

Result of running on an assembly with the following class

namespace NetSpecExporterSpecs
{
    [TestClass]
    public class NameFormatterDescription
    {
        [TestMethod]
        public void ShouldInsertSpaceBetweenWords()
        {
            ...test code...
        }
        [TestMethod]
        public void ShouldKeepNumbersTogether()
        {
            ...test code...
        }
        [TestMethod]
        public void ShouldUppercaseFirstLetter()
        {
            ...test code...
        }
    }
}

Text output from assembly

Name formatter description - NetSpecExporterSpecs.NameFormatterDescription
- should insert space between words
- should keep numbers together
- should uppercase first letter

...

Xml output (with -xml) from assembly

<specifications>
  <description type="NetSpecExporterSpecs.NameFormatterDescription">
    <name>Name formatter description</name>
    <behaviors>
      <behavior realName="ShouldInsertSpaceBetweenWords">should insert space between words</behavior>
      <behavior realName="ShouldKeepNumbersTogether">should keep numbers together</behavior>
      <behavior realName="ShouldUppercaseFirstLetter">should uppercase first letter</behavior>
    </behaviors>
  </description>
  ... 
</specifications>

Xml output (with -xml) from .trx test result file with included stylesheet

Known bugs


Browse Space

- Pages
- News
- Labels
- Attachments
- Bookmarks
- Mail
- Activity
- Advanced

Explore Confluence

- Popular Labels
- Notation Guide

Your Account

Log In

 

Other Features

Add Content