Python Unit Testing with pyVows
PyVows is an open source tools that provides asynchronous behaviour driven development for Python. PyVows allows executing the unit tests in parallel when it makes sense, and sequentially when there are dependencies.
Tutorials and resources on how to apply unit testing in software testing
PyVows is an open source tools that provides asynchronous behaviour driven development for Python. PyVows allows executing the unit tests in parallel when it makes sense, and sequentially when there are dependencies.
Xcode is the complete toolset developed by Apple for building Mac apps and iOS apps. In these two part article, Charlie Fulton proposes a tutorial to start performing unit tests for apps developed with Xcode in a continuous integration context.
In an exploration of the best tools to perform unit testing on JavaScript code, Matthew Setter explores how QUnit can perform this task. QUnit is an open source JavaScript unit testing framework that is used by the jQuery, jQuery UI and jQuery Mobile projects and is capable of testing any generic JavaScript code.
The .NET Micro Framework (NETMF) is an open source .NET platform for resource-constrained devices. It supports development in C#, Visual Basic .NET, and debugging (in an emulator or on hardware) using Microsoft Visual Studio. In this blog post, Mark Nichols explains how to perform unit testing for the .NET Micro Framework.
In my previous column PHP Unit Testing with PHPUnit,I showed how to set up PHPUnit and how to run a few simple tests. You should be able to test any function or method now that doesn’t rely on making calls out to other methods or functions – which is of course very few, as most applications are a complex combination of methods and, in PHP’s case, functions.
Pex is a Visual Studio 2010 Power Tools that help Unit Testing .NET applications. Pex automatically generates test suites with high code coverage. Right from the Visual Studio code editor, Pex finds interesting input-output values of your methods, which you can save as a small test suite with high code coverage. Microsoft Code Digger is a Visual Studio 2012 that analyzes possible execution paths through your .NET code. The result is a table where each row shows a unique behavior of your code. The table helps you understand the behavior of the code, and it may also uncover hidden bugs.
Unit Tests are ultimately a way to ensure quality by catching defined errors cases early. There exist many handy and excellent tools for unit testing, and even methodologies like Test Driven Design based around unit tests. As a result of this, developers tend to use unit tests “for everything”, and consequently use the term too broadly.
Copyright © 2009-2024 Software Testing Magazine by Martinig & Associates