Skip to content

Commit

Permalink
Document. Update dependencies. Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
gugod committed Jan 3, 2009
1 parent cbac273 commit fbcaca9
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 10 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
Revision history for Test-Continuously

0.60:
- Report comments in TAP output. So diag or dubious test file can be seen.

0.0.5:
- Fix the case that it runs the whole t/ directory if there's
no subset of tests to run from dependency list. It should only
Expand Down
19 changes: 12 additions & 7 deletions Makefile.PL
Expand Up @@ -8,14 +8,19 @@ abstract 'Run your tests suite continusouly when developing.';

build_requires 'Test::More' => '0.42';

requires
"IO::File" => 0,
"IO::String" => 0,
requires(
"App::Prove" => "3.09",
"Archive::Tar" => 0,
"File::Modified" => 0,
"File::Spec" => 0,
"File::Spec" => 0,
"File::Temp" => 0,
"IO::File" => 0,
"Log::Dispatch" => 0,
"Module::ExtractUse" => 0,
"File::Modified" => 0,
"TAP::Harness" => "3.09",
"App::Prove" => "3.09",
"Log::Dispatch" => 0;
"TAP::Harness" => "3.09",
"TAP::Parser" => 0,
);

features(
'Notify with Growl' => [
Expand Down
4 changes: 3 additions & 1 deletion lib/Test/Continuous.pm
Expand Up @@ -4,7 +4,7 @@ package Test::Continuous;

use 5.008;

our $VERSION = '0.0.5';
our $VERSION = '0.60';

use Exporter::Lite;
use App::Prove;
Expand Down Expand Up @@ -92,10 +92,12 @@ sub _run_once {
sub _analyze_tap_archive {
my ($dir, $file, @tests) = @_;

my $cwd = getcwd;
chdir($dir);
my $tar = Archive::Tar->new;
$tar->read($file, 0);
$tar->extract();
chdir($cwd);

for my $test (@tests) {
my $file = File::Spec->catfile($dir, $test);
Expand Down
2 changes: 0 additions & 2 deletions lib/Test/Continuous/Formatter.pm
Expand Up @@ -4,7 +4,6 @@ use warnings;
package Test::Continuous::Formatter;
use base 'TAP::Formatter::Console';
use Test::Continuous::Notifier;
use IO::String;
use self;

use 5.008;
Expand Down Expand Up @@ -40,7 +39,6 @@ sub summary {
}
}

print "\n" . "-" x 45 . "\n";
for (split(/\n(?! )/, $summary )) {
s/ +/ /gs;
Test::Continuous::Notifier->send_notify(
Expand Down
31 changes: 31 additions & 0 deletions lib/Test/Continuous/Notifier.pm
Expand Up @@ -51,3 +51,34 @@ sub send_notify {


1;

=head1 NAME
Test::Continuous::Notifier - Send notification to different targets.
=head1 SYNOPSIS
Test::Continuous::Notifier->send_notify($msg, $status)
=head1 DESCRIPTION
This is used only internally.
=head1 METHODS
=over
=item send_notify($msg, [$status])
Must be called as a class method.
C<$msg> is required, and should contain trailing a C<\n> character in
case the output stream is not auto-flushing.
C<$status> is optional, and should be one of C<"info">, C<"warning">,
or C<"alert">. The default value is C<"info">.
=back
=cut

0 comments on commit fbcaca9

Please sign in to comment.