Skip to content

erdi/ratpack-sandpit

Repository files navigation

Ratpack Sandpit

A test driven Ratpack workshop.

Prerequisites

Setup

  • Clone this repo
git clone https://github.com/erdi/ratpack-sandpit.git
  • Run a Gradle build, using the Gradle Wrapper, to setup an IntelliJ IDEA project
cd ratpack-sandpit
./gradlew idea
  • Open the generated ratpack-sandpit.ipr file in IntelliJ IDEA

Instructions

The workshop is comprised of a number of "labs" and each lab is in its own subproject.

In the root of each lab subproject is a README.md file. This contains the details and instructions for the lab.

There is also a solutions branch in which lab subprojects are modified to contain possible solutions with all tests passing. There are many ways to solve the labs, the solutions branch is just one of them.

Running the tests

Tests can be run individually from the IDE or using Gradle. To run tests for the first lab you can use the following:

./gradlew :01-handlers:test

You can also take advantage of Gradle's continuous mode when modifying your code. This will continually run tests on each modification that Gradle detects to your source files:

./gradlew :01-handlers:test --continuous

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages