InfoQ Homepage Unit Testing Content on InfoQ
-
Mockito 1.5 spies on plain objects
The latest release of the Mockito mocking framework enables spying on non-mock objects and introduces a cleaner stubbing syntax.
-
When is Ok to Break the Rules
In “Just Ship Baby” Kent Beck, author of the JUnit Framework, reminds us that the point of all the Agile processes and practices is to produce shipping software. If they’re getting in the way of shipping software – then perhaps you need to break the rules.
-
Interview: Rustan Leino and Mike Barnett on Spec#
Greg Young sat down with Rustan Leino and Mike Barnett of Microsoft Research to discuss Spec#. Spec# is a superset of C# and allows developers to impose contracts on their own code and verify it. This benefits developers by allowing them to find their own errors sooner saving time and resources.
-
JUnit Still Not Dead
JUnit has recently released version 4.5 of the infamous Java testing framework, but is it enough to keep the project in the spotlight? Read more to find what's being talked about regarding the future of JUnit.
-
Moq .NET Mocking Library
Moq is a mocking library for .NET designed and developed to utilize .NET 3.5 features, e.g., Linq expression trees and lambda expressions. Moq's goal is to be simple and straightforward, allowing a natural integration into existing unit tests, instead of forcing developers to rewrite tests or learn extensive Record/Replay mocking frameworks.
-
Pex Automated Exploratory Testing for .NET
Pex is a white-box test generation tool from Microsoft Research. Instead of hand-writing a separate test case for each execution path within a given method, Pex allows a developer to write a single parameterized test method, which Pex will use to generate a suite of standard unit tests to exercise paths within the target method.
-
Interview: Hakan Erdogmus on TDD Misunderstandings and Adoption Issues
In this interview made during Agile 2007, Dr. Hakan Erdogmus, Editor in Chief of IEEE Software, discusses about TDD starting from a study done by Ron Jeffries and Grigori Melnik and published as "TDD--The Art of Fearless Programming" in the IEEE Software magazine. Hakan talks about current misunderstandings regarding TDD's role in software development and the adoption issues it faces.
-
Announcing: New Google C++ Testing Framework
The folks at Google have recently open-sourced their xUnit-based testing framework for C++ development. The framework is said by project developer Zhanyong Wan to have been in use internally at Google for years by thousands of their C++ developers.cc
-
Gallio .NET Test Automation Platform
Gallio is an automation platform targeting .NET test frameworks. Instead of each test framework creating its own toolset, including an automation API and test runner, Gallio seeks to provide a neutral, extensible platform with tools and automation services that can be leveraged by any test framework.
-
TDD Opinion: Quality Is a Function of Thought and Reflection, Not Bug Prevention
In a recent post, Michael Feathers argues against the widely held idea that unit testing, by itself, improves code quality. Michael talks about unit testing, integration tests, TDD and Clean Room Software Development, concluding that code quality is a function of thought and reflection, not bug prevention.
-
Silverlight 2 Unit Test Framework
Microsoft has released an updated version of the Microsoft.Silverlight. Testing framework. This framework allows developers to create unit tests covering Silverlight 2.0 Beta 2 projects.
-
My "Unit Test" Aint Your "Unit Test"
Mike Hill, well-known XP contributor, came forth to make a few interesting assertions about the misunderstanding often surrounding how a TDD "unit test" differs from the "unit test" of traditional lore, and how he uses the term 'microtesting' to clear the air for new TDD'ers.
-
DocTest 1.0 For Ruby Released
Included in the Python standard library, various DocTest Ruby implementations were made available starting one year ago by Tom Locke, Roger Pack, and more recently Dr Nic. We caught up with Duane Johnson who added his changes into the 1.0 version. We discussed DocTest and when docstring-driven testing should be used.
-
When To Use Mock Objects?
In his 'Ode To Code' K Scott Allen offers rational for the use of mock objects when unit testing and discusses his thoughts on the use of mock object frameworks.
-
Presentation: Steve Freeman about Test Driven Development
In this presentation filmed during QCon 2007, Steve Freeman, an independent consultant, talks about TDD, why is it helpful and gives an example on doing it.