Groovy
NotYetImplemented
Method annotation used to invert test case results. If a JUnit 3/4 test case method is annotated with @NotYetImplemented the test will fail if no test failure occurs and it will pass if a test failure occurs.
This is helpful for tests that don't currently work but should work one day, when the tested functionality has been implemented.
Spock
Indicate Specification As Pending Feature
The logical replacement of @NotImplementedYet
within Spock:
With this annotation, Spock will still execute the test, but will set the status to ignored if the test fails. But if the test passes the status is set to failed. So when we have finished the feature we need to remove the annotation and Spock will kindly remind us to do so this way.
GORM
Introducing the Grails 3 GORM Logical Delete Plugin
Logical Deletion:
Reference to a record that remains in the database, but is not included in comparisons or retrieved in searches.
With this GORM plugin and Grails, logical deletion feels elegant.
Undo Button with GORM Logical Delete Plugin
Learn how to create an Undo button with GORM Logical delete plugin in the latest Grails Guide.
Grails
Using Native Mobile Facebook Authentication for a REST Grails 3 application with Spring Security…
Sometimes we need to integrate Facebook login in our apps; even after Cambridge Analytica scandal. 😌
📼 Database Migration with Grails 3
Last week's OCI webinar recording by @AssarNirav.
Database migration plugin or raw Liquibase should be a must in every Grails Web application. Have I deployed apps to production where I delegate to Hibernate the database schema creation? Sure. But when you discover Liquibase you feel in control of one of the critical parts of your app; the database. This should be a must for every project.
Gradle
Quantifying the Costs of Builds
Interesting post by @hans_d, Gradle's CEO. He quantifies how much money does it cost us the build waiting time. That it is Gradle's value proposition. Gradle is the fastest build tool. Thus, Gradle saves you money.
Comment
This issue addresses an interesting software topic: Logical Deletion. Moreover, it covers a couple of annotations (
NotYetImplemented
,PendingFeature
) to improve our test game.I enjoy math, and I appreciate posts which put a dollar 💵 value on software tasks. Check latest Gradle's link.
Sergio del Amo