Hone your craft: approaches to making code testable
I recently read a blog post about using shims to unit test without interfaces. It looks really compelling, so I thought I'd explore some ways to create testable code to…
I recently read a blog post about using shims to unit test without interfaces. It looks really compelling, so I thought I'd explore some ways to create testable code to…
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…
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…
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…
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…
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 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…
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 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…
CasperJS is a javascript based test utility, that can be used to drive a headless Webkit browser to perform automated UI testing of web applications. This blog post describes how to make…
With this blog I just want to share some tips on how to use two interesting test frameworks that are not very well known, Komarro and Catch Exception. Class Under…
REST Assured is a framework for easy testing of REST or HTTP services in Java and has recently reached version 1.8. The internals of REST Assured have undergone a major…
Robotium is a UI test framework for Android applications. With Robotium, test case developers can in easy fashion write function and system tests for Android applications. Robotium has until now only…
Spring has many tools in the toolbox to facilitate testing. However, when it comes to testing a Controller, the tools have been a bit blunt. To make life easier, Sam…
For me unit testing Javascript has been an issue for quite a while. Our backend server usually have a lot of tests at various levels but the Javascript service and…