I have fought with this problem a couple of times, but now I found a way out. Let's say you have a Maven POM and, depending on the active profiles, you want to set a property, like: You should know by now that using mvn package -Pdev,ci is not going to produce the outcome you … Continue reading Combine Maven profile properties
Java
Cucumber is NOT a testing framework!
I have been repeating this statement over and over on the Cucumber forum, but apparently with no good result. To me this is a simple statement and I fail to understand what's difficult to understand in its simplicity: Cucumber (JVM, Ruby, C, the flavour doesn't matter) is not a testing framework. I'll try to further explain … Continue reading Cucumber is NOT a testing framework!
The “Maven and Github on Windows” hell!
I'm sure this is not the first time I prepare a post like this, but I might have decided to last minute drop it: this time it's not going to happen. Sadly I have to use Windows at work and when I have some spare time I do contribute to Open Source Software and I … Continue reading The “Maven and Github on Windows” hell!
Resistor color decoder
Moving along on my previous Ohm's law calculator I decided to add another little feature, a resistor color decoder. I know, there are many out there already, but you know... this is mine! This was more an exercise on SVG manipulation rather than anything else, but I still believe it's something I will use in … Continue reading Resistor color decoder
Generalization pitfalls
Experienced developers, including me, tend to prefer generalized code over highly specialized one, but they usually love very simple and highly readable code much more and the two don't always pair nicely. Disclaimer I'll use Java and Cucumber to make my point clear (I hope) but what I'm going to assert is not strictly related … Continue reading Generalization pitfalls
Living documentation can be readable and fast
I've just found out an interesting article about ATDD and I want to share it. http://claysnow.co.uk/living-documentation-can-be-readable-and-fast/
Multi environment artifacts
Too many times I've seen this anti-pattern applied. So many that I'm here writing about it with the hope some of those applying it will read this post and stop doing it. The anti-pattern I'm referring to is the one I christened Environment Aware Artifact, also known as The Production Build. If you don't understand … Continue reading Multi environment artifacts
Smarter Eclipse quality friendly config
If you haven't realized I've some sort of addiction to software quality then this should be the first time you read my blog: it doesn't mind because you are reading it now! Here is another of my famous (!!!) tips for a better Eclipse IDE configuration and this time I'm trying to help all those … Continue reading Smarter Eclipse quality friendly config
Selenium and the holy search for lost element
If you are using Selenium WebDriver you know it is a great tool for automated testing: no doubt. After a while though you'll end up running your tests in debug mode and dig into code to find out the reason for the very common NoSuchElementException which, surprisingly, tries to communicate the element you were looking … Continue reading Selenium and the holy search for lost element
Eclipse: annoying JSP errors
A few weeks ago I've posted something about annoying Eclipse validation errors regarding minified JavaScript files. Today I'm here to solve the same issue with regards to JSP validations, specifically when those errors are due to non project related files. I've just setup the Maven Cargo Plugin for my project and suddenly I got tons … Continue reading Eclipse: annoying JSP errors