Unitils: 2.0 released


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News Unitils: 2.0 released
# 1  
Old 10-29-2008
Unitils: 2.0 released

Unitils provides utilities to simplify unit-testing with JUnit or TestNG. It builds further on DBUnit and integrates with Hibernate and Spring. The goal is to make unit-testing easy and maintainable by offering utilities such as automatic DB-schema maintenance and equality assertion through reflection.
ImageImage

More...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
mocked(3pm)						User Contributed Perl Documentation					       mocked(3pm)

NAME
mocked - use mocked libraries in unit tests SYNOPSIS
# use a fake LWP::Simple for testing from t/lib/LWP/Simple.pm use mocked 'LWP::Simple'; my $text = get($url); # use a fake WWW::Mechanize for testing from t/mock-libs/WWW/Mechanize.pm use mocked [qw(WWW::Mechanize t/mock-libs)]; DESCRIPTION
Often during unit testing, you may find the need to use mocked libraries to test edge cases, or prevent unit tests from using slow or external code. This is where mocking libraries can help. When you mock a library, you are creating a fake one that will be used in place of the real one. The code can do as much or as little as is needed. Use mocked.pm as a safety measure (be sure you're actually using the mocked module), and as a way to document the tests for future maintainers. VARIABLES
real_inc_paths The real @INC that we are over-ridding is stored here while we are loading the mocked library. FUNCTIONS
import With a package name, this function will ensure that the module you specify is loaded from t/lib. You can also pass an array reference containing the package name and a directory from which to load it from. AUTHOR
Luke Closs, "<cpan at 5thplane.com>" Scott McWhirter, "<kungfuftr at cpan.org>" MAD CREDS TO
Ingy dA~Xt net, for only.pm LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2009-12-09 mocked(3pm)