Sponsored Content
Full Discussion: testing
Top Forums UNIX for Advanced & Expert Users testing Post 302082396 by sssow on Wednesday 2nd of August 2006 12:01:17 AM
Old 08-02-2006
There are many levels of testing: Unit testing, functional testing, Integration testing, load/performance testing. Unit testing is done at unit level typically by using some thing like Junit by the developers themselves. Rest of things are done by QA or respective teams
 

3 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

testing

what is the difference between white box and black box testing? (1 Reply)
Discussion started by: areef4u
1 Replies

2. UNIX for Dummies Questions & Answers

testing

first time use (0 Replies)
Discussion started by: lcharles
0 Replies

3. Shell Programming and Scripting

Ip up/down testing

#!/bin/bash ip=$1 if ; then echo "U must enter ip as argument: $0 " exit 1 fi testip=`echo $ip |grep -E "^((||1{2}|2|25)){3}(||1{2}|2|25)$"` if ; then echo "Wrong ip adress" exit 2 fi ping -c 2 $ip 2>&1 >/dev/null if ; then echo "$ip is UP" else echo "$ip is... (2 Replies)
Discussion started by: aco4u
2 Replies
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)
All times are GMT -4. The time now is 06:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy