This document provides guidance on testing Grails applications. It outlines different types of tests including unit tests, integration tests, and controller tests. It describes test doubles like stubs, spies and mocks and what types of classes they are commonly used for. The document also includes examples of writing tests using JUnit, Spock framework assertions and the Grails testing APIs. It provides a cheat sheet of common testing concepts and commands for testing Grails applications.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
328 views
Unit Testing Cheat Sheet
This document provides guidance on testing Grails applications. It outlines different types of tests including unit tests, integration tests, and controller tests. It describes test doubles like stubs, spies and mocks and what types of classes they are commonly used for. The document also includes examples of writing tests using JUnit, Spock framework assertions and the Grails testing APIs. It provides a cheat sheet of common testing concepts and commands for testing Grails applications.