JCrete2013:Groovy

From WikiEducator
Jump to: navigation, search
Groovy
Convenor: Andres Almiray
Participants:
  • Marcus Schulte
  • Stelios Ntilis
  • Andres Almiray
  • Marek Nowicki
Summary:
Day 2, Session 1 - Groovy tools - JCrete2013


Free content media streamed from Wikimedia Commons
Cc-sa.svg

Download:
Download: .ogg

We saw some examples of the following Groovy tools

Spock Framework: testing framework

Geb: web functional testing

Gradle: build tool


Spock is a testing framework that simplifies writing tests, particularly data driven ones.Other advantages include the usage of @Unroll and @Stepwise annotations. The first expands variable placeholders on method names, making them more accurate in describing what they do. The second annotation enforces execution order of methods, exactly as they are defined in the source code. It also ensures that the state of the last executed method is carried over to the next, thus simplifying setup in functional tests.

Geb was used to demonstrate functional testing of a Grails application. Geb is an abstraction on top of webdriver. It can work with JUnit, Easyb or Spock.

Finally we covered simple gradle build files. These files shown that migrating from maven when the build is fairly standard is simply a breeze. Managing multi project builds with gradle is also much simpler.

Recommendations:

No recommendations provided.