« TaskPipe/SchemaTemplate_Project_Test/Result/Operation.pm
↑ Summary
TaskPipe/Task_WhoIs/Settings.pm »
| 1 | package TaskPipe::Task::TestSettings; | ||
| 2 | |||
| 3 | use Moose; | ||
| 4 | with 'TaskPipe::Role::MooseType_OutputMode'; | ||
| 5 | with 'MooseX::ConfigCascade'; | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | TaskPipe::Task::TestSettings - test settings for L<TaskPipe::Task> | ||
| 10 | |||
| 11 | =head1 METHODS | ||
| 12 | |||
| 13 | =over | ||
| 14 | |||
| 15 | =item file_prefix | ||
| 16 | |||
| 17 | The test output file filename prefix | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | has file_prefix => (is => 'ro', isa => 'Str', default => 'TestResult.'); | ||
| 22 | |||
| 23 | =item file_suffix | ||
| 24 | |||
| 25 | The test output file extension | ||
| 26 | |||
| 27 | =cut | ||
| 28 | |||
| 29 | has file_suffix => (is => 'ro', isa => 'Str', default => '.log'); | ||
| 30 | |||
| 31 | |||
| 32 | =item output | ||
| 33 | |||
| 34 | Whether to print test output to screen, file or both. (Options are C<file>, C<screen> or C<file,screen>). This defaults to C<file> because the test result output can be substantial. | ||
| 35 | |||
| 36 | =back | ||
| 37 | |||
| 38 | =cut | ||
| 39 | |||
| 40 | has output => (is => 'ro', isa => 'OutputMode', default => 'file'); | ||
| 41 | |||
| 42 | =head1 AUTHOR | ||
| 43 | |||
| 44 | Tom Gracey <tomgracey@gmail.com> | ||
| 45 | |||
| 46 | =head1 COPYRIGHT AND LICENSE | ||
| 47 | |||
| 48 | Copyright (c) Tom Gracey 2018 | ||
| 49 | |||
| 50 | TaskPipe is free software, licensed under | ||
| 51 | |||
| 52 | The GNU Public License Version 3 | ||
| 53 | |||
| 54 | =cut | ||
| 55 | |||
| 56 | |||
| 57 | __PACKAGE__->meta->make_immutable; | ||
| 58 | 1; | ||
| 59 | |||
| 60 |