In this chapter, we added a bunch of tests in src/test/java
. I chose to go with Groovy, so I deleted the duplicated tests:
In the src/test/groovy
directory, I have refactored two tests as follows:
In src/integrationTest/groovy
, we have an integration test written with Geb:
Finally, we added an integrationTest
task to the Gradle build. Run gradle clean test
and gradle clean integrationTest
to make sure that all your tests pass.
If the build is successful, we are ready for the next chapter.