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