Groovy
Groovy Podcast Ep. 50
Double Groovy Podcast episode for such a special number.
If you want to learn about Grails past, present and future listen to @kenkousen interviewing @jeffscottbrown, @graemerocher and @nulleric.
If you want to learn about the Groovy Roadmap, listen to @kenkousen interview @paulk_asert.
Spock
Including or Excluding Specifications Based On Annotations
@mrhaki teaches us how to take advantage of a Spock configuration file to run or ignore specifications.
One of the lesser known and documented features of Spock if the external Spock configuration file. In this file we can for example specify which specifications to include or exclude from a test run. We can specify a class name (for example a base specification class, like DatabaseSpec) or an annotation. In this post we see how to use annotations to have some specifications run and others not.
Spock tests grouping using @Category from junit
Paweł Chudzik shows how we can categorize Spock specifications into groups:
When project hits certain size there is a lot of tests. Usually, some tests are faster than others. For example database tests will be slower than domain tests. When developing small feature completely unrelated to database code we don’t really need to run DB tests on our machine CI tool will do it for us. So to improve development experience we can categorize tests into groups.
Grails
Eric Helgeson - Grails Rock Star Award
Yesterday at G3 Summit 2017, Eric Helgeson was awarded the Grails Rock Star Award. Eric is the author of the book Practical Grails 3, and he is often seen in the Grails Slack Community answering and helping other users. Moreover, Eric contributes to the Grails Community with code, plugin development, issues reporting, etc.
Better know a Grails plugin
Presentation by @nulleric at G3 Summit 2017.
A journey around the Grails 3 ecosystem. Plugins are what makes Grails great. So many plugins out there to quickly setup sane defaults for your app and get going quickly. Build on what others have built upon.
Gradle
Gradle vs Maven and Gradle in Kotlin or Groovy
You can never draw a strong conclusion just from looking at Github public repositories. But this blog post by @glaforge shows two facts.
- Kotlin is not taking over the Gradle build world in a fortnight.
- Maven is still the big player in the build world.
Comment
This week, I have bee dealing with a large slow test suite. I have found a couple of Spock links which may be interesting to you too; see below.
Also, Grails Rock star award 2017 was announced and more from G3 Summit.
Sergio del Amo