Skip to main content

Blog Archive for johnsmart during December 2011

Web tests are as a rule much slower than other types of tests, but they can be sped up significantly by running them in parallel. However, this is often harder to implement than it sounds. The latest version of Thucydides (version 0.6.0) comes with support for running parallel test batches, making this task much easier. Web tests make good candidates for concurrent testing, in theory at least,...
Hamcrest is a neat little library that lets you write more fluent and readable tests. For example, rather than writing:     assertEquals("red", color); you would write:     assertThat(color,is("red")); This makes for tests that express their intent much more clearly, which in turn makes the tests easier to understand and to maintain, and more...