If you are developing your Geb programms with Firefox or Chrome driver, they will probably be running in a traditional desktop resolution. You may be puzzled when your tests fail in PhantomJS driver. Why? After further investigation you will probably realise that the tests are failing because the code you developed will only work when […]
I originally saw this tip in an Andrés Almiray‘s talk. There is a Gradle forum thread where it is discussed too. Sometimes you want to run your program in a machine with Java 1.6. How to ensure source and target compatibility in a build.gradle file:
El pasado martes 14 de Junio tuve la suerte de dar una charla en Madrid GUG. El grupo de usuario de Madrid de Groovy. Probablemente uno de los grupos de usuarios de Groovy en el mundo con mayor afluencia del mundo. Se lo trabajan mucho sus organizadores. No éramos muchos en la charla pero de […]
It is easy to ignore a test only if the test is run in a particular environment thanks to the @IgnoreIf Spock annotation. If you run your tests in Jenkins, it is probable that the tests are being run by a user called jenkins. Thus, you can ignore a test in a Jenkins Job easily: […]
The folks from GR8Day Warsaw have been so kind to post the video of my talk You can checkout the slides here.
The next example shows how to use a Trait to output a CSV string for any Class which implements the trait The next Spock test will pass: This Trait can be used for any class which you wish to output as a comma separated value. Useful to export information to be sued in Excel or […]