Yet Another Test Specification Library
Java JavaScript HTML CSS Smalltalk
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.


This library replaces test tools like Concordion and Fit by allowing your tests to stay maintainable (i.e refactoring support in you favourite IDE) while still producing human readable documentation.

Currently this library supports 3 levels of usage:

  • TableRowTest support for JUnit Methods (like in MBUnit / NUnit)
  • Specification support for Junit. Produces readable Html from your test
  • "Given / When / Then" support with automatic capturing and display of "givens" and captured inputs and output.


The simplest example would be to add the JUnit @RunWith attribute specifying the SpecRunner class to your Test class.

public class ExampleTest {
    public void reallySimpleExample() throws Exception {
        assertThat("The quick brown fox".contains("fox"), is(true));

If you ran this test you would see the following in STOUT:

Html output:

If you opened the HTML file you would see:


So lets quickly explain what has happened:

  • The fully qualified class name is turned into the directory structure and filename. i.e. -> com/company/ExampleTest.html
  • A table of contents is generated for every test method
  • The method body is interpreted into a text specification
  • Tests are colour according to the following scheme
    • Green == Passed
    • Red == Failed
    • Orange == Not Run

Maven repo =>

Java Support

Version 1.1 requires Java 7 or higher. Version 217 is the last build that supports Java 6.