Unit Testing and Mocking Tools: C/C++, Java, JavaScript, .NET, PHP, Python, Ruby, Flex

 

This website presents a list of commercial and open source unit testing and mocking tools in the principal programming languages: Java, .NET, JavaScript, PHP, Ruby, Python, Ruby, Scala, Erlang, TypesScript, Go, etc.

 

The primary goal of unit testing is to take the smallest piece of testable software in the application, isolate it from the remainder of the code, and determine whether it behaves exactly as you expect. Each unit is tested separately before integrating them into modules to test the interfaces between modules. Unit testing has proven its value in that a large percentage of defects are identified during its use. A modern approach to unit testing is the Test-Driven Development (TDD) Agile testing technique where you write the unit tests before writing the code to be tested.

At this level of testing, tools target specific programming languages. The most famous unit testing tool is Junit, a open source framework to write repeatable tests. It was the base of the xUnit architecture for open source unit testing frameworks that has been used in many programming languages.