Java Testing with Spock

Book Description

Summary

Java Testing with Spock teaches you how to use Spock for a wide range of testing use cases in Java. Readers new to Groovy will appreciate the succinct language tutorial that'll give you just enough Groovy to use Spock effectively.

Purchase of the print book includes a free eBook in , Kindle, and ePub formats from Manning Publications.

About the Technology

Spock combines the features of tools like JUnit, Mockito, and JBehave into a single powerful Java testing library. With Spock, you use Groovy to write more readable and concise tests. Spock enables seamless testing, and with the intuitive Geb library, you can even handle functional testing of .

About the Book

Java Testing with Spock teaches you how to use Spock for a wide range of testing use cases in Java. You'll start with a quick overview of Spock and work through unit tests using the Groovy language. You'll discover best practices for test design as you learn to write mocks, implement integration tests, use Spock's built-in BDD testing tools, and do functional web testing using Geb. Readers new to Groovy will appreciate the succinct language tutorial in chapter 2 that gives you just enough Groovy to use Spock effectively.

What's Inside

  • Testing with Spock from the ground up
  • Write mocks without an external library
  • BDD tests your business analyst can read
  • Just enough Groovy to use Spock

About the Reader

Written for Java developers. Knowledge of Groovy and JUnit is helpful but not required.

About the Author

Konstantinos Kapelonis is a who works with Java daily.

Table of Contents

PART 1 FOUNDATIONS AND BRIEF TOUR OF SPOCK
Chapter Introducing the Spock testing framework
Chapter Groovy knowledge for Spock testing
Chapter A tour of Spock functionality

PART 2 STRUCTURING SPOCK TESTS
Chapter Writing unit tests with Spock
Chapter Parameterized tests
Chapter Mocking and stubbing

PART 3 SPOCK IN THE ENTERPRISE
Chapter Integration and functional testing with Spock
Chapter Spock features for enterprise testing

Book Details

  • Title: Java Testing with Spock
  • Author:
  • Length: 304 pages
  • Edition: 1
  • Language: English
  • Publisher:
  • Publication Date: 2016-03-31
  • ISBN-10: 1617292532
  • ISBN-13: 9781617292538
Download LinkFormatSize (MB)Upload Date
Direct download (Recommended!)True PDF, EPUB, MOBI16.305/15/2019
Download from ZippyShareTrue PDF, EPUB, MOBI16.203/16/2016
How to Download? Report Dead Links & Get a Copy

Leave a Reply