IntelliJ IDEA - Writing Tests with Spock
Offered By: JetBrains via YouTube
Course Description
Overview
Explore unit testing with the Spock framework in this 36-minute screencast. Learn to create a Spock project, set up dependencies, and write simple assertions. Discover the Given-When-Then structure, Groovy tips for Java developers, and how to use the Spock plugin. Master advanced techniques like expecting exceptions, data pipes, data tables, mocks, and stubs. Dive into helper methods, with() and verifyAll() functions, setup and teardown processes, and how to use specifications as documentation. Gain practical insights from author Trisha Gee and access additional resources for further learning about Spock and IntelliJ IDEA.
Syllabus
- Intro
- Creating a Project for Spock
- Setting up the Dependencies
- A Simple Assertion
- Given, When and Then
- Groovy Tips for Java Developers
- Label Flexibility
- Spock Plugin
- Expecting Exceptions
- Data Pipes
- Data Tables
- Mocks
- Stubs
- Helper Methods
- with
- verifyAll
- Setup and Teardown
- Specifications as Documentation
- Conclusion and More Information
Taught by
IntelliJ IDEA by JetBrains
Tags
Related Courses
Estadística descriptivaUniversidad Politécnica de Cartagena via Miríadax Excel: Fundamentos y herramientas
Universitat Politècnica de València via edX Excel 2010
Universitat Politècnica de València via EMMA SQL
Udacity Introduction to Importing Data in R
DataCamp