Try to keep units small, use appropriate tools, and pair-up programmers and tester; these are suggestions for writing good unit tests. Unit testing is a mixture of programming and testing; programmers can work together with testers to learn from each other and broaden their knowledge horizons.
A recent post in Reddit sparked a debate between the traditional testing framework JUnit and upstart Spock with the central theme, “What’s wrong with JUnit?”
The JUnit Lambda Team has recently announced the alpha release of JUnit 5, a new major version for the popular unit testing framework. Changes in the new version are mostly focused at removing the common obstacles that JUnit 4 presented to developers, while also modifying the framework to allow for easier changes in the future. Integration with build tools and IDEs still needs some further work.
NUnit 3 was recently released, bringing parallel execution and extensibility to the .NET testing framework. InfoQ reached out with Charlie Poole, maintainer of NUnit for over 10 years, to learn more about this release.
Twitter has open sourced Diffy, an automated testing tool used in production for discovering potential bugs in new code running on Apache Trift and other HTTP-based services.
XebiaLabs TestView is a test management and analytics tool, integrating the execution, data analysis and visualization of multiple functional and unit testing tools.
The Spring Security team released Spring Security 4.0.0, adding several new features as well as more default security. Major themes include WebSocket Security, Spring Data integration, better testing support and the introduction of Spring Session as a new (Apache licensed) open source project.
Convinced that “whatever can be unit tested should be unit tested”, Mona El Mahdy, a Software Engineer in Test at Google, has written a blog post proposing several approaches to perform unit tests on the user interface of Android applications. Mahdy recommends Robolectric and the Android Studio Gradle plug-in for general unit testing, and Espresso or UI Automator for creating and running UI tests.
Typemock has released Isolator++ with support for 64 bit C/C++ code including legacy code that was not originally written for testing.
Typemock Isolator v7.4.3 for .NET has been released with support for FastFix, improved smartrunner in addition to Visual Studio 2013 and TFS 2012 integration.
TypeScript is nearing its first production release and planning has already begun for post 1.0 features. At the top of the list is async/await, which should prove useful for both client-side and Node.js development.
Easy access unit test generation functionality returns to Visual Studio 2012 and 2013 Preview based on a tool produced the Visual Studio ALM Rangers. Multiple unit test frameworks and C#/VB .NET are supported.
The recently released, Visual Studio Unit Test Generator includes support for multiple test framework and enables you to unit test applications directly from within Visual Studio 2012 and 2013.