Jazoon 2010, day 3
The last post of the series (day 1, day 2). The Gaia satellite and Data Processing by William O’Mullane The day started with some astronomy. Gaia is another effort for a complete sky survey (like it’s...
View ArticleDependency Injection and Reference Passing
When you start using dependency injection (DI), you probably come from the painful world of singletons. Singletons are a lie. When we were doing structured programming (remember? What we did before...
View ArticleFeeling like Hercules?
In the ancient mythology, Hercules slew the Hydra, a monster which could grow a new head for each one cut off. Does that remind you of your programming job? The punchline is: Hercules didn’t conquer...
View ArticleJaCoCo: Successor of EclEmma
If you’re using EclEmma to check the code coverage, you should have a look at JaCoCo. If you’re not using code coverage, yet, you really should. JaCoCo (Java Code Coverage Library) is the successor of...
View ArticleMocking AJAX in jQuery
When developing small web applications, it would be great if I could mock AJAX requests. Apparently, Jonathan Sharp had the same problem and created a solution: Mock Your Ajax Requests with Mockjax for...
View ArticleJazoon 2012: Large scale testing in an Agile world
Alan Ogilvie is working at a division of IBM responsible for testing IBM’s Java SE product. Some numbers from his presentation: A build for testing is about 500MB (takes 17 min to download to a test...
View ArticleThe Difference Between Unit and Integration Tests
A unit test checks a certain feature of the software. When it fails, you usually know exactly where to look for a place to fix the problem. They are short, compact and fast. They come at a cost,...
View ArticleSelenium vs. ZK
Testing ZK applications using Selenium can be a drag. Selenium offers a lot of tool to test traditional request-response cycle applications. But it relies heavily on stable element IDs and submitting...
View ArticleJazoon 2013 – Spock: boldly go where no test has gone before
If you look at your tests, do you see a lot of repetitive patterns? Or are you looking for a way to express your intent more easily? Then, Spock might be for you. The talk “Spock: boldly go where no...
View ArticleAgile For Prudes
The article “WORKING IN A WANNABE-AGILE TEAM” points out a common problem in agile: It really exposes you and most people simply are prude. Unlike many people want to make you believe, they are aware...
View ArticleEclipse Finance Day 2014: Automating user interface tests with...
The last two talks were about testing. “Automating user interface tests with behavior-driven development (BDD)” by Jose Badeau and Dietmar Stoll used an Xtext-based DSL to connect requirements,...
View ArticleEclipse Finance Day 2014: Testing business applications with RCPTT
RCP Testing Tool (RCPTT) is an Open Source tool for UI testing of Eclipse-based applications. During the demo by Ivan Inozemtsev, I got the impression that they thought of everything: There is a...
View ArticleSoCraTes Day: Testing the Impossible
I’m back from SoCraTes Day Switzerland where I help a Code&Hack session called “Testing the Impossible”. The session is based on this Mercurial repository de.pdark.testing. Transcript Space Shuttle...
View ArticleReplacing Integration With Unit Tests
Google asks to “Just Say No to More End-to-End Tests” – just go and read it. The suggestion in the document is to have a testing pyramid. A few (slow, expensive, dangerous) End-to-End (E2E) tests, more...
View ArticleTNBT – Creating Tests from the Debugger
From my series “The Next Best Thing“: Often, you will find yourself in a debugger, trying to follow some insanely complicated code to find the root cause of a bug. I would like to see a button in my...
View ArticleGood and Bad Tests
How do you distinguish good from bad tests in your code? Check these criteria. Good tests Nail down expectations Monitor assumptions Help to locate the cause of a failure Document usage patterns Allow...
View ArticleChained Unit Tests – CUT
The CUT approach allows to test logically related parts or to gradually replace integration tests with pure unit tests. Let’s start with the usual app: There is a backend server with data and a...
View Article