REST Assured 2.0 – Testing your REST services is easier than ever
REST Assured is a simple Java library for testing of REST services and a new major version has just been released. Not only is it easy to use and get started with but it’s […]
View ArticleJSON Schema Validation with REST Assured
When exposing REST or HTTP based service APIs it’s important to validate that the API behaves correctly and that the exposed data format is structured in an expected manner. Using REST Assured it has […]
View ArticleUnit Testing Spring MVC Controllers with REST Assured
The REST Assured test library for Java was recently updated to version 2.2 and one of the new features is support for unit testing Spring MVC controllers using the new spring-mock-mvc module. This...
View ArticleIntroducing Robotium Recorder
Ever since we started the Robotium open source project 4 years ago we’ve been asked about the availability of a recorder to further simplify the creation of UI test cases. The time has finally […]
View ArticleJava 8 and AssertJ support in Awaitility 1.6.0
Awaitility is a library for Java (with extensions for Groovy and Scala) to test asynchonous systems. The 1.6.0 release introduces support for AssertJ assertions as well as better Java 8 support. Java 8...
View ArticlePing-Pong Pairing Over Git
When practicing new programming techniques I am a fan of ping-pong pairing. Ping-pong pairing is a way of pairing with TDD that evenly distributes the amount each programmer spends in front of the...
View ArticleIntegration Testing a Spring Boot Application
Spring Boot brings about some welcome defaults configurations that significantly decreases the development time of Spring projects. It also has some useful additions when it comes to simplified...
View ArticleInstalling & configuring TeamCity on Windows with MS SQL Server
TeamCity is a Continuous Integration and build management server from JetBrains. With it you can set up automatic builds, tests and deployment. Getting it up and running took a lot of reading on my […]
View ArticleIntegration Testing Setup with Midje and Leiningen
Writing good tests is something that is important in virtually all software projects. In this blog we’ll use Midje and Leiningen for integration testing. Midje is a test framework for Clojure whose...
View ArticleHeadless JavaScript testing with RequireJS and Chutzpah in Visual Studio
Introduction I want to share my setup for testing JavaScript code when used with RequireJS in Visual Studio. My goal was to have the JavaScript tests look and feel the same as the C# […]
View ArticleUsing another JUnit Runner with PowerMock
PowerMock 1.6.0 was released a couple of days ago and the main new feature expect for better support for Mockito 1.10.x is the ability to combine the PowerMockRunner with another JUnit runner without...
View ArticlejUnit @Rule and Spring Caches
If you have worked a while with jUnit you may have seen jUnit Rules. Simply put, a field in a test class annotated with @Rule is a class that lets you execute some code […] The post jUnit @Rule and...
View ArticleAutomatic versionCode generation in Android Gradle
In this post I’ll show you how to setup Gradle for an Android project to automatically generate a usable versionCode from a standardized version number. The problem The Android Gradle build system is...
View ArticleParameterized testing with Robolectric
In our current project we are using Robolectric when writing unit tests for our Android application and it has been working out really well. Recently I needed to write a test case that performed […]...
View ArticleTesting of hybrid mobile applications
In my latest project I was responsible for test and quality of a hybrid mobile application for Android, iOS and Windows Phone. The plan was to have a simple native “wrapper” for the different […] The...
View ArticleTesting hard to reach app states with a custom debug shell
I have worked in a few app projects that have been up and running for quite some time. The apps often handle a bunch of error states or seldom visited states that are hard […] The post Testing hard to...
View ArticleAndroid Networking: How to Mock the Internet
Android networking doesn’t sound very radical nowadays. Actually, it’s hard to find apps that don’t have some sort of network dependency. Some of them won’t even start without a stable network. Others...
View ArticleCross platform testing example for Android and iOS using Appium
I have been working in a couple of projects where we have created the “same” application in both Android and iOS. In most cases they look and behave the same way (except for the […] The post Cross...
View ArticleContinuous Deployment on AWS Lambda
The quickest way of pushing every code change to production is to use automation, but to do that in a safe and sustainable way also requires test automation. The goal of this blog post […] The post...
View ArticleContinuous Deployment of AWS Lambda behind API Gateway
In two previous blog posts I started by introducing scripts for Continuous Deployment on AWS Lambda and then I continued to experiment with Introduction to CloudFormation for API Gateway. This blog...
View Article