Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.055.108 Times

Test::Extreme 0.12

  Date Added: October 26, 2010  |  Visits: 600

Test::Extreme

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)

Test::Extreme is a perlish unit testing framework. SYNOPSIS # In ModuleOne.pm combine unit tests with code package ModuleOne; use Test::Extreme; sub foo { return 23 }; sub test_foo { assert_equals foo, 23 } # at the end of the module run_tests ModuleOne if $0 =~ /ModuleOne.pm$/; # To run the tests in this module on the command line type perl ModuleOne.pm # If you have tests in several modules (say in ModuleOne.pm, # ModuleTwo.pm and ModuleThree.pm, create test.pl containing # precisely the following: use ModuleOne; use ModuleTwo; use ModuleThree; run_tests ModuleOne, ModuleTwo, ModuleThree, # Then run these tests on the command line with perl test.pl # If you prefer to get Perls classic "ok/not ok" output use # replace run_tests with run_tests_as_script in all of the # above # Also take a look at Test/Extreme.pm which includes its own # unit tests for how to instrument a module with unit tests Test::Extreme is a perlish port of the xUnit testing framework. It is in the spirit of JUnit, the unit testing framework for Java, by Kent Beck and Erich Gamma. Instead of porting the implementation of JUnit we have ported its spirit to Perl. The target market for this module is perlish people everywhere who value laziness above all else. Test::Extreme is especially written so that it can be easily and concisely used from Perl programs without turning them into Java and without inducing object-oriented nightmares in innocent Perl programmers. It has a shallow learning curve. The goal is to adopt the unit testing idea minus the OO cruft, and to make the world a better place by promoting the virtues of laziness, impatience and hubris. You test a given unit (a script, a module, whatever) by using Test::Extreme, which exports the following routines into your namespace: assert $x - $x is true assert_true $x - $x is true assert_false $x - $x is not true assert_passed - the last eval did not die ($@ eq "") assert_failed - the last eval caused a die ($@ ne "") assert_some $x - $x is true assert_none - $x is false assert_equals $x, $y - recursively tests arrayrefs, hashrefs and strings to ensure they have the same contents assert_contains $string, $list - $list contains $string assert_subset $element_list, $list - $element_list is a subset of $list (both are arrayrefs) assert_is_array $x - $x is an arrayref assert_is_hash $x - $x is a hashref assert_is_string $x - $x is a scalar assert_size N, $list - the arrayref contains N elements assert_keys [k1, k2], $hash - $hash contains k1, k2 as keys run_tests_as_script - run all tests in package main and emit Perls classic "ok/not ok" style output run_tests_as_script NS1, NS2, ... - run all tests in package main, NS1, NS2, and so on and emit Perls classic "ok/not ok" style output run_tests - run all tests in package main run_tests NS1, NS2, ... - run all tests in package main, NS1, NS2, and so on For an example on how to use these assert take a look at Test/Extreme.pm which includes it own unit tests and illustrates different ways of using these asserts. The function run_tests finds all functions that start with the word test (preceded by zero or more underscores) and runs them one at a time. It looks in the main namespace by default and also looks in any namespaces passed to it as arguments. Running the tests generates a status line (a "." for every successful test run, or an "F" for any failed test run), a summary result line ("OK" or "FAILURES!!!") and zero or more lines containing detailed error messages for any failed tests. To get Perls classic "ok/not ok" style output (which is useful for writing test scripts) use run_tests_as_script instead of run_tests..

Requirements: No special requirements
Platforms: Linux
Keyword: Assert Libraries List Moduleone Pm Testextreme Testing Tests Unit Unit Testing Unit Tests X Is
Users rating: 0/10

License: Freeware Size: 5.12 KB
TEST::EXTREME RELATED
MP3 Tools  -  RoboCert ECSS Practice Testing Engine 2.0
Download free ECSS practice testing engine. ECSS practice testing engine is ultimate solution for validation of your knowledge. All ECSS exam materials are with money back guarantee. Download free demo.
1.04 MB  
MP3 Tools  -  RoboCert IREB Practice Testing Engine 2.0
Download free IREB practice testing engine. IREB practice testing engine is ultimate solution for validation of your knowledge. All IREB exam materials are with money back guarantee. Download free demo. IREB Practice testing engine is a great...
3.25 MB  
Programming  -  Crucible 1.7.1
Crucible provides a powerful, flexible backend for building automated testing systems. Crucible allows for conducting tests on multiple machines (via NFS), including patching, rebuilding, and booting new kernels, libraries, and services....
79.87 KB  
Libraries  -  Test::Unit::GTestRunner 0.04
Test::Unit::GTestRunner is a Unit testing framework helper class SYNOPSIS use Test::Unit::GTestRunner; Test::Unit::GTestRunner->new->start ($my_testcase_class); Test::Unit::GTestRunner::main ($my_testcase_class); If you just want to run...
63.49 KB  
Programming  -  TestSweet - Java unit testing goodness 0.3
Testsweet is a unit testing tool to ensure that all tests in a project are being run, by either auto generating unit test suites at runtime, or ensuring that all tests in a project are included in a static suite at build time.
203.04 KB  
Networking Tools  -  Nettion 0.8.0
Nettion provides a network performance testing toolkit. Nettion (NETwork TestIng and Operational eNvironment) is a framework for developing, deploying, and executing network performance tests, designed particularly for mobile ad-hoc networks....
665.6 KB  
Programming  -  Nestor - Web Test Generator 1.0
Functional testing tool for automating browser-based tests of web application.
204.1 KB  
Programming  -  Unit Testing Framework - XSLT 0.0.8.alpha
Unit Testing Framework - XSLT (UTF-X) is a JUnit extension for testing XSLT stylesheets.
12.09 MB  
Libraries  -  Math::BigInt 1.87
Math::BigInt is an arbitrary size integer/float math package. SYNOPSIS use Math::BigInt; # or make it faster: install (optional) Math::BigInt::GMP # and always use (it will fall back to pure Perl if the # GMP library is not installed): #...
194.56 KB  
Programming  -  .NETUnit 0.9
An implementation of Kent Beck's famous XUnit testing framework designed specifically for unit testing components written for the .NET platform.
161.79 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB