Tutorials and resources on how to apply unit testing in software testing
This video provides an introduction to the NUnit. NUnit is a unit-testing framework for all .Net languages. It is written entirely in C# and has been completely redesigned to take advantage of many .NET language features, for example custom attributes and other reflection related capabilities. The video covers what is NUnit, how to set it up, creating a test class and running tests.
Mockito is an open source mocking framework for Java. In this series of blog posts, Holger Staudacher shares his experiences with Mockito. He defines “effective” as arriving at clean test and production code as fast as possible. The first post of Effective Mockito explains how to setup Mockito in the Eclipse IDE for the daily work. The second post focuses on Mockito’s @Mock Annotation.
In this blog post, Steve Madsen shares how to use RSpec on an OS/X machine to write unit tests for Objective-C classes. He provides a detailled step by step tutorial on how to install MacRuby, RSpec and how to set up your Cocoa (Mac or iOS) project to perform unit testing with RSpec.
One of the biggest challenges facing web applications is the support of web browsers with different versions. This challenge is inherited from the lack of testing the JavaScript code living in the presentation tier from day one. Without unit testing this code, organizations may pay for repeated testing of web applications after upgrading or supporting new browsers. This article shows you how to reduce testing costs using efficient unit testing for JavaScript code.
Unit testing focuses on testing small pieces of code that a developer is writing. This article shows how to get started unit testing JavaScript as well as server-side code.
This is a brief video on how to use the JUnit open source unit testing framework for Java. By using JUnit, you can assert that methods in your Java code work as designed, without the need to set up the complete application.
In this blog post, Roger Hughes explains how SureAssert, an integrated Java unit testing tool for Eclipse, can help solving the problem of having to change your Java unit tests when you change part of your code. You use annotations to define a set of tests for each of your class’s methods instead of writing unit tests. SureAssert automatically checks the annotations, generate and run unit tests.