JUnit, Java's most ubiquitous testing framework, is getting an update. In part one of our JUnit 5 coverage, we looked at how we got here and wrote some preliminary tests. In part two, we take a closer look at how to run tests and at some of the very cool new features JUnit 5 brings to the table for us developers.
JUnit, Java's most ubiquitous testing framework, is getting an update. Yes, JUnit 5 is a complete rewrite that decouples "JUnit the Platform" from "JUnit the Tool" and makes the platform available to other testing frameworks, which might very well redefine the future of testing on the JVM. More than that, it evolves the API and has a very promising extension model.
Full-stack testing can be a widespread and involved task. There are unit tests and end-to-end tests, but how do you know where to focus your efforts? In this article, David Copeland looks at the kinds of tests and how to balance the interplay between those tests and the overall software development effort.
In this article we explore how to create automated fluent BDD scenarios using the Screenplay Pattern – a possible outcome of mercilessly refactoring Page Objects using SOLID design principles. 3
In the fifth instalment of this series, we will describe what is new within Apple Developer Tools, including Xcode Playgrounds, LLDB, UI testing, Interface Builder, etc.
Stopping after unit testing is like starting automobile production after testing the nuts and bolts. This article investigates some important techniques in integration testing.
Matt Honeycutt introduces SpecsFor, a .NET unit and integration test framework, explaining how to set it up, how to create the first tests, and provides a few hints on advanced usage scenarios. 4
At the recent Agile Singapore conference Kevlin Henney gave two talks focusing on the importance of simplicity in architecture and implementation and on programming with Good Unit Tests (GUTS).
In this important and thorough treatise “Integration Testing from the Trenches” Nicolas Frankel starts from basics and develops integration testing with a casual formalism that's intuitive and fun.
Using so-called "matcher libraries" to implement custom assertions to make tests more readable and maintainable. 2
Quality Code book covers different aspects of SDLC with focus on delivering quality product. InfoQ spoke with author Stephen Vance about the book and best practices for testing applications.
To refactor legacy code, the ideal is to have a suite of unit tests to prevent regressions. However it's not always that easy. This article describes a methodology to safely refactor legacy code. 7