<iframe src="//www.googletagmanager.com/ns.html?id=GTM-MXN9JJ" height="0" width="0" style="display:none;visibility:hidden">

The Smaato Blog

The Smaato Blog

Gerd Rohleder

Gerd is Smaato's Senior Java Developer in our platform's Core Technology team. He is a test-driven development practitioner and has extensive experience in behavior-driven development.

Recent Posts

Building better software tests with Spock

Posted by Gerd Rohleder on October 14, 2016

Development is one of the key activities that build, enable and ultimately power the overall mobile environment.  Today we are sharing some key insight into an important aspect of development – testing framework – from one of our most experienced developers here at Smaato.

Developers know that choosing the right testing framework for the job can be really complicated. The jUnit Framework is an excellent Java testing tool, but for specific tests that require sample data, better tools - like the Groovy-based Spock - are availableThis post describes how to use Spock and how it handles test data. It also explores how Spock tests can be executed with jUnit tests and maven.

How jUnit runs parameterized tests

To have a test that works with a set of test data, you need to define a data method which returns all samples in a Collection. Each sample is used to instantiate a new test class. The constructor needs suitable parameters for the test samples. Then all test methods are executed, as you can see in the code samples below:

Read more »

Getting Started With User Acceptance Tests

Posted by Gerd Rohleder on January 22, 2016

In our quest to develop the most efficient, full featured mobile-first advertising platform, it has become evident that Smaato's development team had to adopt user acceptance tests (UATs). Manual checks done directly in releases or integrations tests on small parts of the application wasn't sufficient enough to minimize risks for bugs. Besides, we couldn't afford to take a full day to do complete round trips or tests for a feature. UATs allowed us to run those crucial tests in an automated fashion and focus on quality.

Read more »