My favorites | Sign in
Logo
                
Search
for
Updated Apr 12, 2009 by etorreborre
Labels: Featured
UserGuide  
User guide for the specs framework

Introduction

specs is designed as an alternative for JUnit when specifying and testing Java or Scala projects. Yet, it is able to reuse the existing JUnit infrastructure for execution and reporting since the specifications can be executed as JUnit4 test suites.

specs also integrates an advanced testing and specification library, the ScalaCheck project in order to be able to generate a numerous cases testing a given property.

specs takes its inspiration from existing frameworks:

  • rspec for trying to have a literate structure to specifications and assertions and also for the possibility to share examples between related specifications (as in the Stack example).
  • jmock for having reusable matchers and expressive assertions.

User Guide

This User Guide is divided in 7 parts:

Alpha version!

For more examples about what you can do with the library, please:

Maven dependency

If you're a Maven user, you need to add the following dependency to your pom file:

    <dependency>
      <groupId>org.scala-tools.testing</groupId>
      <artifactId>specs</artifactId>
      <version>1.4.4</version> <!-- specify the version here -->
    </dependency>

Note: specs versions older than 1.4.4 are using the org.specs groupId


Comment by stepan.koltsov, May 07, 2008

Links to "all specifications" and "matchers applicable to any object" are wrong.

Comment by etorreborre, May 13, 2008

Thanks Stepan, I corrected those links.

Comment by tony.hillerson, Apr 18, 2009

http://scala-tools.org/repo-releases/org/scala-tools/testing/specs/ only has version 1.4.3. When will it contain 1.4.4?


Sign in to add a comment
Hosted by Google Code