Myriad::Test - a collection of helpers to test microservices.
use Test::Myriad; my $mock_service = add_service(name => 'mocked_service');
A mini utility to help developers testing myriad services.
it can create completely fake services or mock already existing ones.
It uses the Myriad::Transport::Memory by default to change that you can set the environment variable MYRIAD_TEST_TRANSPORT
Adds a service to the test environment the service can be an already existing service or totally a new mocked one.
it takes one of the following params:
service - A package name for an existing service.
service
name - A Perl package name that will hold the new mocked service.
name
Returns a Future indicate that test env is ready to be used.
at the moment it is just a shortcut for Myriad run_future.
Returns the Myriad instance we are using
Deriv Group Services Ltd. DERIV@cpan.org.
DERIV@cpan.org
See "CONTRIBUTORS" in Myriad for full details.
Copyright Deriv Group Services Ltd 2020. Licensed under the same terms as Perl itself.
To install Myriad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Myriad
CPAN shell
perl -MCPAN -e shell install Myriad
For more information on module installation, please visit the detailed CPAN module installation guide.