Stupid Test
Test::XML::XPath is a Perl module to test XPath assertions. SYNOPSIS use Test::XML::XPath tests => 3; like_xpath( , /foo ); # PASS like_xpath( , /bar ); # FAIL unlike_xpath( , /bar ); # PASS is_xpath( bar , /foo, bar ); # PASS is_xpath( bar , /bar, foo ); # FAIL # More...
Platforms: *nix
License: Freeware | Size: 9.22 KB | Download (89): Test::XML::XPath Download |
Test::Fixme is a Perl module to check code for FIXMEs. SYNOPSIS # In a test script like t/test-fixme.t use Test::Fixme; run_tests(); # You can also tailor the behaviour. use Test::Fixme; run_tests( where => lib, # where to find files to check match => TODO, # what to check for...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (93): Test::Fixme Download |
Test::File::Find::Rule is a Perl module to test files and directories with File::Find::Rule. SYNOPSIS use Test::File::Find::Rule; # Check that all files in $dir have sensible names my $rule = File::Find::Rule ->file ->relative ->not_name(qr/^[w]{1,8}.[a-z]{3,4}$/);...
Platforms: *nix
License: Freeware | Size: 3.07 KB | Download (104): Test::File::Find::Rule Download |
Bundle::Test is a set of modules for software and hardware testing using Perl. SYNOPSIS A bundle does not have code in it. It is only a list of related modules. It exists only to make it easier to install these modules with one command: perl -MCPAN -e install Bundle::Test This bundle,...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (99): Bundle::Test Download |
Test::Reporter::Date::Format Perl module contains date formating subroutines. SYNOPSIS use Test::Reporter::Date::Format; @lt = localtime(time); print time2str($template, time); print strftime($template, @lt); print time2str($template, time, $zone); print strftime($template, @lt,...
Platforms: *nix
License: Freeware | Size: 23.55 KB | Download (107): Test::Reporter::Date::Format Download |
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 a unit test (suite), try it like this:...
Platforms: *nix
License: Freeware | Size: 63.49 KB | Download (89): Test::Unit::GTestRunner Download |
Test::Signature is a Perl module to automate SIGNATURE testing. SYNOPSIS # This is actually the t/00signature.t # file from this distribution. use Test::More tests => 1; use Test::Signature; signature_ok(); ABSTRACT Test::Signature verifies that the Module::Signature generated...
Platforms: *nix
License: Freeware | Size: 16.38 KB | Download (197): Test::Signature Download |
Test::MockClass is a Perl module to provide mock classes and mock objects for testing. SYNOPSIS # Pass in the class name and version that you want to mock use Test::MockClass qw{ClassToMock 1.1}; # create a MockClass object to handle a specific class my $mockClass =...
Platforms: *nix
License: Freeware | Size: 14.34 KB | Download (106): Test::MockClass Download |
Test::Dependencies is a Perl module to ensure that your Makefile.PL specifies all module dependencies. SYNOPSIS In your t/00-dependencies.t: use Test::Dependencies exclude => [qw/ Your::Namespace Some::Other::Namespace /]; ok_dependencies(); Makes sure that all of the modules that are...
Platforms: *nix
License: Freeware | Size: 21.5 KB | Download (89): Test::Dependencies Download |
Test::Tail::Multi is a Perl module to execute code, monitor dynamic file contents. SYNOPSIS use Test::Tail::Multi files => [qw(file1 file2)] tests=>2; # Can add files dynamically as well add_file(file3, "decided to add file3 too"); # Execute a command and check against output...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (107): Test::Tail::Multi Download |
Test::WWW::Simple is a Perl module to test Web applications using TAP. SYNOPSIS use Test::WWW::Simple; # This is the default user agent. user_agent(Windows IE 6); page_like("http://yahoo.com", qr/.../, "check for expected text"); page_unlike("http://my.yahoo.com", qr/.../, "check for...
Platforms: *nix
License: Freeware | Size: 12.29 KB | Download (92): Test::WWW::Simple Download |
Test::XML::Simple is an easy testing for XML. SYNOPSIS use Test::XML::Simple tests=>5; xml_valid $xml, "Is valid XML"; xml_node $xml, "/xpath/expression", "specified xpath node is present"; xml_is, $xml, /xpath/expr, "expected value", "specified text present"; xml_like, $xml, /xpath/expr,...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (92): Test::XML::Simple Download |
Test::YAML::Valid is a Perl module is a test for valid YAML. SYNOPSIS This module lets you easily test the validity of YAML: use Test::More tests => 3; use Test::YAML::Valid; yaml_string_ok(YAML::Dump({foo => bar}), YAML generates good YAML?); yaml_string_ok(this is not YAML, is it?,...
Platforms: *nix
License: Freeware | Size: 26.62 KB | Download (90): Test::YAML::Valid Download |
Test::Usage is a different approach to testing: selective, quieter, colorful. SYNOPSIS Lets say we are building module Foo.pm. To exercise it, we write a usage examples module, Foo_T.pm, which may eventually look something like this: package Foo_T; use Test::Usage; use strict; use...
Platforms: *nix
License: Freeware | Size: 16.38 KB | Download (94): Test::Usage Download |
Test::WWW::Selenium is a Perl module to test applications using Selenium Remote Control. SYNOPSIS Test::WWW::Selenium is a subclass of WWW::Selenium that provides convenient testing functions. use Test::More tests => 5; use Test::WWW::Selenium; # Parameters are passed through to...
Platforms: *nix
License: Freeware | Size: 39.94 KB | Download (93): Test::WWW::Selenium Download |
Test::MockDBI is Perl module mock DBI interface for testing. SYNOPSIS use Test::MockDBI; OR use Test::MockDBI qw( :all ); Test::MockDBI::set_dbi_test_type(42); if (Test::MockDBI::get_dbi_test_type() == 42) { ... $mock_dbi = get_instance Test::MockDBI; $mock_dbi->bad_method(...
Platforms: *nix
License: Freeware | Size: 19.46 KB | Download (95): Test::MockDBI Download |
Test::Simple is a Perl module with basic utilities for writing tests. SYNOPSIS use Test::Simple tests => 1; ok( $foo eq $bar, foo is bar ); ** If you are unfamiliar with testing read Test::Tutorial first! ** This is an extremely simple, extremely basic module for writing tests suitable...
Platforms: *nix
License: Freeware | Size: 77.82 KB | Download (92): Test::Simple Download |
Test::Glade is a simple way to test Gtk2::GladeXML-based apps. SYNOPSIS use Test::Glade tests => 2; my $glade_xml = interface.glade; has_widget( $glade_xml, { name => main_window, type => GtkWindow, properties => { title => Test Application, type => GTK_WINDOW_TOPLEVEL, resizable =>...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (90): Test::Glade Download |
Test::TestCoverage is Perl module to test if your test covers all public subroutines of the package. SYNOPSIS use Test::TestCoverage; test_coverage(My::Module); my $obj = My::Module->new(); $obj->foo(); $obj->bar(); # test will be ok, assumed that My::Module has the subroutines new,...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (86): Test::TestCoverage Download |
classes::Test are functions to help with classes pragma testing. SYNOPSIS can_new can_set_get has_decl has_class_const has_mixins has_mixins_hash is_classes MyClass; is_classes main; is_throwable X::Mine; is_classes_exc X::Mine; Generic tests based on Test::Builder designed to...
Platforms: *nix
License: Freeware | Size: 163.84 KB | Download (99): classes::Test Download |