-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
executable file
·35 lines (25 loc) · 1.65 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Testability Koans
===============================
The purpose of this project is to help you see firsthand how testable code is structured. The project includes several branches with examples of refactoring untestable code.
Prerequisites
-------------
- JDK 5 or higher
Building with Gradle
--------------------
Type: ./gradlew clean test
Downloaded files (including the Gradle distribution itself) will be stored in the Gradle user home directory (typically "<user_home>/.gradle").
Creating an Eclipse project
---------------------------
Type: ./gradlew cleanEclipse eclipse
Make sure you have a recent version of the Groovy Eclipse plugin installed. After importing the generated project into a workspace, go to Preferences->Java->Build Path->Classpath Variables and add a variable named GRADLE_CACHE with value "<user_home>/.gradle/cache". (If you have an environment variable GRADLE_USER_HOME set, the correct value is "<GRADLE_USER_HOME>/cache".) You should now be able to build the project, and to run the specs like you would run a JUnit test. See http://wiki.spockframework.org/GettingStarted#Eclipse for more information on how to get started with Spock and Eclipse.
Creating an IDEA project
---------------------------
Type: ./gradlew cleanIdea idea
Open the generated project in IDEA. You should now be able to build the project, and to run the specs like you would run a JUnit test.
Further Resources
-----------------
Spock homepage http://spockframework.org
Spock web console http://meet.spockframework.org
Main documentation http://wiki.spockframework.org/SpockBasics
Gradle homepage http://www.gradle.org
Groovy homepage http://groovy.codehaus.org