Tutorials and resources on how to apply unit testing in software testing

Introduction to Apex Code Test Methods

March 12, 2012 0

Unit tests are comprised of test methods and classes that verify whether a particular piece of code is working properly. This article introduces test methods in the salesforce.com environment. It details why test methods are a critical part of Force.com application development, test method syntax, best practices, and advanced topics such as test methods for Visualforce controllers and Apex web service callouts.

Integration and Unit Tests Separation with Maven and Sonar

March 12, 2012 0

This blog post explains how to separate integration and unit tests with Maven, Sonar, Failsafe and JaCoCo. This is achieved by executing unit tests via Surefire and integration tests via Failsafe. Then you  show as much information about them as possible in Sonar. The post provides detailed command lines and Maven configuration files to achieve this goal.

Easy Black-box testing with Robotium for Android

March 2, 2012 0

Learn how Robotium works with standard Android instrumentation tests, including details on how it can be used in real life. Robotium is a test framework created to make it easy to write powerful and robust automatic black-box test cases for Android applications. Test case developers can write function, system and acceptance test scenarios, spanning multiple Android activities.

Unit Testing in .NET

February 22, 2012 0

Unit testing is a difficult but essential activity to improve software quality and team velocity. This video presents the best practices to perform unit testing in a .NET context and with an agile approach.

JUnit Anti-patterns

February 21, 2012 0

The open source JUnit unit testing tool has been a blessing for Java developers. However, many programmers think that it is enough to learn the JUnit API and write a few tests in order to have a well-tested application. This idea is more dangerous than not doing unit tests because it leads to a wrong sense of code quality. Learning JUnit is the easiest part of unit testing your Java code, but writing good tests is the hard part.

BDD for PHP with Codeception

February 20, 2012 0

Codeception is a Behavior Driven Development (BDD) testing PHP framework. It aims to provide an original way to write acceptance, functional and unit tests. It uses a scenario approach where you declare what you are doing and what results you expect from your tests. The first post introduces the tool and explains how to write tests with Codeception. A second post digs deeper into the code and shows you how Codeception could be used for unit testing.

Using Generate from Usage for TDD with Visual Studio

February 15, 2012 0

This article provides a process to integrate Test-Driven Development in the maintenance of a .NET application. You will first write the tests that will prove your new code gets the same results as the legacy code. Then you isolate new code into separate methods or classes that you can test independently. You break down the requirements into simple valid tests. Finally you check to see that you have not introduced a new bug. While you are doing this, let Visual Studio generate the utility code for you and find a tool to run your tests continuously like AutoTest.NET.

1 17 18 19 20 21 27