Smolder::TestData
use Smolder::TestData qw(create_project delete_projects); my $proj1 = create_project(); my $proj2 = create_project(); delete_projects();
This module provides some routines that are useful for testing.
Will create a Smolder::DB::Project object and return it. Name-value args may be passed in to override the defaults.
my $proj1 = create_project(); my $proj2 = create_project(name => 'stuff');
Will delete all projects that were created by create_project.
Will create a Smolder::DB::Developer object and return it. Name-value args may be passed in to override the defaults.
Will delete all developers that were created by create_developer.
Will create a Smolder::DB::Preference object and return it. Name-value args may be passed in to override the defaults.
Will delete all preferences that were created by create_preference.
Will create a Smolder::DB::SmokeReport object and return it. Name-value args may be passed in to override the defaults. You must provide both a project and a developer upon creation.
my $report = create_smoke_report( project => $project, developer => $dev, ); my $report2 = create_smoke_report( platform => 'Windows NT', project => $project, developer => $dev, );
Will delete all test reports create by create_smoke_report.
Delete the tags with the given names
delete_tags('foo', 'bar');
Returns true if Smolder is up and running. Else returns false. Perfect to use in controller tests that will skip the test if it's not running.
Returns the base url for the dynamic portions of the site.
Returns the value for a given database field given the table, field and id.
db_field_value('developer', 'password', '23');
To install Smolder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Smolder
CPAN shell
perl -MCPAN -e shell install Smolder
For more information on module installation, please visit the detailed CPAN module installation guide.