neilwatson has asked for the wisdom of the Perl Monks concerning the following question:
Greetings,
Does anyone have examples of Rex::Test::Spec to share? The documentation is slim. How does it know what host to test? How can I test multiple hosts with single test suite? My first try fails:
#!/usr/bin/env perl use strict; use warnings; use Rex::Test::Spec; describe "CFEngine tests", sub { context process( 'cf-exed' ), sub { like its( 'command' ), qr|\A(/var/cfengine/bin/)?cf-execd\Z|; }; }; done_testing; Run it: $ ./cfengine_test.pl Error loading Rex::Test::Spec::process. at /home/neil/perl5/perlbrew/p +erls/p
Neil Watson
watson-wilson.ca
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Rex::Test::Spec
by toolic (Bishop) on May 29, 2015 at 16:46 UTC |