Name : perl-Test-Mocha
| |
Version : 0.67
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-07-03 19:10:33
|
Group : Development/Libraries/Perl
| Source RPM : perl-Test-Mocha-0.67-lp156.1.1.src.rpm
|
Size : 0.07 MB
| |
Packager : https://www_suse_com/
| |
Summary : Test double framework with method stubs and behaviour verification
|
Description :
Test::Mocha is a test double framework inspired by Java\'s Mockito. It offers a different approach to other mocking frameworks in that instead of setting up the expected behaviour beforehand you ask questions about interactions after execution of the system-under-test. This approach means there is less setup needed to use your test double which means you can focus more on testing, and it minimises the coupling of the tests to the implementation which means less maintenance of your test code.
Explicit stubbing is only required when the dependent object is expected to return a specific response. And you can even use argument matchers to skip having to enter the exact method arguments for the stub.
After executing the code under test, you can test that your code is interacting correctly with its dependent objects. Selectively verify the method calls that you are interested in only. As you verify behaviour, you focus on external interfaces rather than on internal state.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.6/noarch |