Specter Ghost Logo

Specter

Getting Started

Specter uses the Boo programming language. Therefore you need a Boo compiler to compile specs into .NET assemblies that are loadable by NUnit. At present there are two main options.

  1. Manually compile with booc.exe
  2. Use Sharp Develop 2.0

Using booc.exe

Coming soon...

Using Sharp Develop 2.0

Sharp Develop 2.0 comes with Boo bindings pre-installed. Download Sharp Develop and install.

This is the Sharp Develop IDE:
Sharp Develop IDE

Create a new solution and choose Boo Class Library as the type of project.
New Project Window

In order to create specs your project will need a reference to the Specter assembly. Download the latest Specter binary distribution ZIP file. Extract "Specter.dll" from the ZIP file. You can put the DLL anywhere. I tend to create a "lib" directory for each project I work on and put the various tools and libraries in there. Add a reference to Specter.dll via Project > Add Reference, select the ".Net Assembly Browser" tab and click Browse.

Specter specs generate NUnit compatible assemblies. Therefore you must also reference NUnit from your spec project. Sharp Develop 2.0 has built-in NUnit support. Go to View > Tools > Unit Tests. Click the "Add Reference" button:
Add Reference Button
This will add the correct NUnit references to your project.

You are now ready to write your first spec! Sharp Develop adds a default source file "MyClass.boo". You can either delete or rename this file. I tend to create a Boo source file for each class I am specifying. In each file I then put a number of contexts. However for larger specs your may prefer to put each in its own file.

View the video to see Specter in action and get a feel for what you can do from this point.

Copyright © Andrew Davey 2006
Check my blog for news and updates.

SourceForge.net Logo