Test::MockObject::Extends - mock part of an object or class River stage three • 270 direct dependents • 896 total dependents

Test::MockObject::Extends lets you mock one or more methods of an existing object or class. This can be very handy when you're testing a well-factored module that does almost exactly what you want. Wouldn't it be handy to take control of a method or ...

CHROMATIC/Test-MockObject-1.20200122 - 22 Jan 2020 18:48:26 UTC

Test::Core - Modern Perl testing with a single import River stage zero No dependents

Test::Core provides the best testing harness of Modern Perl in a single, user-friendly import. It builds off of Test::Modern while also providing clean interfaces to dumping and mocking facilities from other libraries. Test::Core also automatically i...

AANARI/Test-Core-0.0200 - 10 Jul 2015 20:59:42 UTC

Test::MockClass - A module to provide mock classes and mock objects for testing River stage one • 1 direct dependent • 1 total dependent

This module provides a simple interface for creating mock classes and mock objects with mock methods for mock purposes, I mean testing purposes. It also provides a simple mechanism for tracking the interactions to the mocked objects. I originally wro...

JJORDAN/Test-MockClass-1.05 - 25 Jan 2010 07:35:23 UTC

Test::MockObject - Perl extension for emulating troublesome interfaces River stage three • 270 direct dependents • 896 total dependents

It's a simple program that doesn't use any other modules, and those are easy to test. More often, testing a program completely means faking up input to another module, trying to coax the right output from something you're not supposed to be testing a...

CHROMATIC/Test-MockObject-1.20200122 - 22 Jan 2020 18:48:26 UTC

Test::MonkeyMock - Usable mock class River stage one • 5 direct dependents • 5 total dependents

Why? I used and still use Test::MockObject and Test::MockObject::Extends a lot but sometimes it behaves very strangely introducing hard to find global bugs in the test code, which is very painful, since the test suite should have as least bugs as pos...

VTI/Test-MonkeyMock-0.12 - 13 Nov 2019 09:34:30 UTC

Test::MockModule - Override subroutines in a module for unit testing River stage three • 135 direct dependents • 393 total dependents

"Test::MockModule" lets you temporarily redefine subroutines in other packages for the purposes of unit testing. A "Test::MockModule" object is set up to mock subroutines for a given module. The object remembers the original subroutine so it can be e...

GFRANKS/Test-MockModule-v0.175.0 - 17 Sep 2020 17:46:38 UTC

Test::Spec::Mocks - Object Simulation Plugin for Test::Spec River stage two • 58 direct dependents • 73 total dependents

Test::Spec::Mocks is a plugin for Test::Spec that provides mocking and stubbing of objects, individual methods and plain subroutines on both object instances and classes. This module is inspired by and heavily borrows from Mocha, a library for the Ru...

AKZHAN/Test-Spec-0.54 - 21 Nov 2017 10:08:54 UTC

Test::Mock::Class - Simulating other classes River stage one • 3 direct dependents • 3 total dependents

In a unit test, mock objects can simulate the behavior of complex, real (non-mock) objects and are therefore useful when a real object is impractical or impossible to incorporate into a unit test. The unique features of "Test::Mock::Class": * Its API...

DEXTER/Test-Mock-Class-0.0303 - 01 May 2010 13:58:00 UTC

Test::Class::Simple - Simplify your unit tests writing based on Test::Class River stage zero No dependents

This is an extension of Test::Class <https://metacpan.org/pod/Test::Class> module to implement unit tests in more simple and declarative way. Methods pre_setup() Can be overridden. Method that is executed before every test method and is useful for so...

OKYSIL/Test-Class-Simple-0.06 - 01 May 2020 08:10:18 UTC

Test::Mock::Net::SNMP - Perl extension for mocking Net::SNMP in your unit tests. River stage zero No dependents

Test::Mock::Net::SNMP is a simple way to mock a Net::SNMP object and allows you to test your modules behaviour when retrieving SNMP data or sending SNMP traps....

ROBH/Test-Mock-Net-SNMP-1.02 - 12 Apr 2013 11:33:36 UTC

Test::Builder::Mock::Class - Simulating other classes for Test::Builder River stage zero No dependents

This module adds support for standard Test::Builder framework (Test::Simple or Test::More) to Test::Mock::Class. Mock class can be used to create mock objects which can simulate the behavior of complex, real (non-mock) objects and are therefore usefu...

DEXTER/Test-Builder-Mock-Class-0.0203 - 28 May 2010 23:12:48 UTC

11 results (0.103 seconds)