SmokeRunner::Multi::Config - Config information for a Smokerunner::Multi setup
version 0.21
use SmokeRunner::Multi::Config; my $config = SmokeRunner::Multi::Config->instance(); print $config->root_dir();
This class reads the config file for SmokeRunner::Multi, and provides access to the data in it. It is a singleton, so the config will only be read when the object is first created.
SmokeRunner::Multi
This class provides the following methods:
Returns the instance of the config object. The first time this is called, it will read the config file.
The config file should be in YAML format.
This class will look for the config file in several locations.
First, if the SMOKERUNNER_CONFIG variable is set, it checks this location.
SMOKERUNNER_CONFIG
Next, if the the current user has a home directory, it will look in [home]/.smokerunner/smokerunner.conf. Finally it looks in /etc/smokerunner/smokerunner.conf.
If it cannot find a file it will die.
The root directory for the smokerunner. This should contain the test sets, and it will be used for storing data on the filesystem, so it needs to be writeable by the smoke runner process.
The SmokeRunner::Multi::Runner subclass to use. This can be a full class name, or just the unique part of the subclass ("Prove" or "Smolder").
SmokeRunner::Multi::Runner
The SmokeRunner::Multi::Reporter subclass to use. This can be a full class name, or just the unique part of the subclass ("Smolder").
SmokeRunner::Multi::Reporter
Returns a hash reference of Smolder configuration data.
The configuration file is expected to be in YAML. There are three required config keys:
root
The root directory for you test sets.
runner
The class used to run tests. This can be either a full class name (SmokeRunner::Multi::Runner::Prove), or just a short name of a Runner class (Prove).
SmokeRunner::Multi::Runner::Prove
Prove
reporter
The class used to run tests. This can be either a full class name (SmokeRunner::Multi::Reporter::Prove), or just a short name of a Reporter class (Smolder).
SmokeRunner::Multi::Reporter::Prove
Smolder
This class doesn't lend itself well to supporting config info for new types of runner or reporter classes. That should be fixed ;)
Dave Rolsky, <autarch@urth.org>
Please report any bugs or feature requests to bug-smokerunner-multi@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-smokerunner-multi@rt.cpan.org
Copyright 2007 LiveText, Inc., All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Dave Rolsky <autarch@urth.org>
Yanick Champoux <yanick@cpan.org>
This software is copyright (c) 2007 by LiveText, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install SmokeRunner::Multi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SmokeRunner::Multi
CPAN shell
perl -MCPAN -e shell install SmokeRunner::Multi
For more information on module installation, please visit the detailed CPAN module installation guide.