8 projects tagged "Unit Testing"
ytest is a PHPUnit extension, based on the PHP extension "runkit", that allows you to replace static, private, and global functions with fakes, stubs, or mocks. This eases the automated testing of PHP applications that weren't written in a TDD fashion (i.e. test-first). It can also be helpful on projects where many methods are kept private, or projects that don't use OOP so much. ytest has already been used to "test after" (as opposed to "test first") some real-life commercial projects, and has proven useful. It needs PHP >= 5.2.
Complexity Analyzer is a utility class that can evaluate the complexity of the code in another class and provide a complexity ranking for methods. Given existing unit tests, it provides a to do list, consisting of all methods with incomplete or missing tests, again ordered by complexity. It complements PHPUnit's code coverage functionality and can be used for guiding test writing efforts. It provides command line interface options, so it can be executed as a command from a shell.
pyrobase assembles general Python helper functions and classes that can be applied to any project. This includes some additional tasks for the Paver build tool, an improved xmlrpc2scgi module, unit test helpers, and generic base modules for various domains. All modules have unit tests, and the goal is to reach >80% coverage.
Thread Weaver is a framework for writing multithreaded unit tests for Java classes. It lets you create breakpoints inside your code and to stop individual threads when they reach a breakpoint. This allows you to produce controlled repeatable tests that can help to verify thread safety and detect race conditions.