/java-testing-with-spock

Code samples from the book "Java testing with Spock"

Primary LanguageJava

Java Testing with Spock

Current build status: Build Status

Drawing

Description

This GIT repository contains all source code for the book Java Testing With Spock published by Manning. Each chapter is offered as an independent Maven project.

Free chapter

You can get an overview of Spock and read a brief discussion on its features in the first chapter of the book. This chapter is freely available in PDF format.

Requirements

To use the code samples you need the following:

  • Java Development Kit version 7+
  • Maven installed (mvn should be available in the command line)
  • Internet access (for fetching library dependencies)

Usage

You can checkout/run any chapter on its own. You can either work directly on Github or download the code as a ZIP file For each chapter entering the command mvn test will compile and run all JUnit/Spock tests. You can also import a chapter (as a Maven project) in your favourite IDE. To gain syntax highlighting you also need to install Groovy support in your IDE.

Code listings

Chapter 1

###Chapter 2

###Chapter 3

Issues with the code.

If you find a problem with the code feel free to open an issue. If you feel like contributing you can even create a pull request!

Issues with the book

If you have comments and suggestions for the book please use the Manning forum. I monitor it regularly and it is helpful if other readers can see and respond to your comments.

Enjoy!