Getting early feedback applying Test-Driven Development

Test-Driven Development (TDD) is one of the Extreme Programming (XP) core practices, re-discovered[1] in 2003 by Kent Beck, that relies on very short feedback loops: you write the test (expectation), make it fail, write the minimum amount of code to make it pass (redundancy is accepted at this point). Write a new test, it fails, make it pass… keep running […]

Spock test framework, live long and prosper.

Spock is a testing and specification framework for Java and Groovy applications. What makes it stand out from the crowd is its beautiful and highly expressive specification language. Thanks to its JUnit runner, Spock is compatible with most IDEs, build tools, and continuous integration servers. Spock is inspired from JUnit, jMock, RSpec, Groovy, Scala, Vulcans, […]

Meet JHipster!

Meet JHipster, a new (or not) generator with all modern/hype frameworks to create your web app! Main goals { A high-performance and robust Java stack on the server side with Spring Boot; A sleek, modern, mobile-first front-end with AngularJS and Bootstrap; A powerful workflow to build your application with Yeoman, Bower, Grunt and Maven / Gradle. } 20 minutes […]

Managing dependencies in groovy scripts

Imagine you want to write a Groovy script and this script uses a the 3rd party library. How to do? There are some solutions, such as: 1) Bootstrapping groovy with bash in the groovy script: #!/bin/bash //usr/bin/env groovy -cp extra.jar:some-spring-jar.jar:etc.jar -d -Dlog4j.configuration=file:/etc/myapp/log4j.xml “$0” $@; exit $? import org.springframework.class.from.jar //… code goes here… println ‘Wicket!’ 2) […]