Olaf's blog on software development
  • Imprint
  • License for sourcecode posted in this blog

Measuring test-coverage of integration tests for separated modules with JaCoCo

By olaf On May 11, 2013 · Add Comment
JaCoCo is a test coverage analysis tool and works conveniantly when used to measure test coverage within a single maven module. However, it is a common practice to isolate integration tests in a dedicated module – for instance to set up common testing infrastructure and mocks before executing the integration tests. If both the tested classes [...]
[Continue Reading...]

Increasing unit test coverage with MoreUnit

By olaf On July 15, 2012 · Add Comment
While the support for JUnit-based tests included in the Eclipse JEE distribution is decent, it does not offer much but running test and viewing results. Crucial and tedious tasks such as conceiving new tests and visualizing coverage are not included. Also, the shortcuts for running tests (ctrl + shift + x + t) are hard [...]
[Continue Reading...]

Concurrent execution of integration and unit tests with maven

By olaf On July 15, 2012 · Add Comment
After following a few inspiring talks at this year’s JAZOON conference I decided to try to optimize some build processes with regard to better use of multicore architecture. Specifically, I was slightly annoyed by the long-running, serial execution of some complex integration tests and decided to parallelize their execution. The set of tests I wanted [...]
[Continue Reading...]

Testing SSL (HTTPS) clients with Junit and Jetty

By olaf On July 14, 2010 · Add Comment
I recently ran into a situation where a web service client had issues when invoking a webservice via HTTPS. To reproduce, I needed a lightweight, JUnit-based test to reproduce the problem and write a regression test. Here is how I got it to work: First, I used the basic HTTP test setup. Now however, I [...]
[Continue Reading...]

Lightweight testing of (webservice) HTTP clients with JUnit and Jetty

By olaf On July 14, 2010 · 11 Comments
If you’re working with webservice clients you will certainly have noticed the complexity of integration-testing your webservice clients. Building webservice clients can already be quite a complex task, but providing a mock-up webservice backend delivering useful test responses is quite often just to much work, if not impossible, since many web service backends are very [...]
[Continue Reading...]
  • ← Previous Entries
  • Imprint
  • License for sourcecode posted in this blog
Build a website with PageLines