InfoQ Homepage Unit Testing Content on InfoQ
-
Are Unit Tests Part of Your Team’s Performance Reviews?
No matter how often you conduct performance reviews, there is no doubt unit testing should be one of the metrics measured. Eli Lopian explains what makes a good unit test and how to measure them to ensure your development team is truly agile.
-
How Java Developers Can Use the Wiremock Framework to Simulate HTTP-Based APIs
A common syndrome in development shops today is the repeated creation of over-the-wire stubs and mocks for testing. In this article Wojciech Bulaty covers how Java developers can avoid reinventing the wheel and leverage Wiremock to build over-the-wire HTTP(s) stubs.
-
JUnit 5 - An Early Test Drive - Part 2
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 5 - An Early Test Drive - Part 1
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: Balancing Unit and End-to-End Tests
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.
-
Beyond Page Objects: Next Generation Test Automation with Serenity and the Screenplay Pattern
Automated acceptance testing reduces time wasted in manual testing and bug fixing, and when combined with Behaviour-Driven Development, can guide development effort. But it requires skill, practice and discipline. The Screenplay Pattern helps teams address these difficulties and is where you may end up by mercilessly refactoring Page Objects using SOLID design principles.
-
What’s New in iOS 9: Xcode 7 and Other Developer Tools
In the first four installments of this series, we reviewed new and enhanced frameworks included with iOS 9 SD, changes to Swift and Objective-C, and the new Safari content blocking API. In this article, we will describe what is new within Apple Developer Tools, including Xcode Playgrounds, LLDB, UI testing, Interface Builder, etc.
-
You’ve Completed Unit Testing; Your Testing has Just Begun
Stopping testing your code when your unit tests all pass is like starting mass production of automobiles after testing the nuts and bolts. Integration testing guarantees that the collaboration of classes works. This article investigates some important techniques in integration testing.
-
Intro to .NET Unit & Integration Testing with SpecsFor
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.
-
Kevlin Henney on Worse is Better and Programming with GUTS
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). He spoke to InfoQ about the thinking behind his talks and how they can be implemented.
-
Book Review: Integration Testing from the Trenches
In this important and thorough treatise “Integration Testing from the Trenches” Nicolas Frankel starts from basic definitions and develops the concepts of integration testing with a casual formalism that's intuitive and fun.
-
Custom Assertions in Java Tests
Using so-called "matcher libraries" to implement custom assertions to make tests more readable and maintainable.