/[Frey]/trunk/lib/Frey/Test/Runner.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Test/Runner.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 512 by dpavlin, Tue Nov 25 13:47:46 2008 UTC revision 525 by dpavlin, Wed Nov 26 00:51:08 2008 UTC
# Line 59  has depends => ( Line 59  has depends => (
59          },          },
60  );  );
61    
62    our $running;
63    
64  sub as_markup {  sub as_markup {
65          my ($self) = @_;          my ($self) = @_;
66    
67            return 'allready running' if $running;
68            $running = 1;
69    
70          my $f = TAP::Formatter::HTML->new({          my $f = TAP::Formatter::HTML->new({
71  #               silent => 1,  #               silent => 1,
72    
# Line 92  sub as_markup { Line 97  sub as_markup {
97                  @tests = glob('t/*.t');                  @tests = glob('t/*.t');
98          }          }
99    
100            $self->title( join(' ', @tests ) );
101    
102          warn "testing ",dump( @tests );          warn "testing ",dump( @tests );
103          $h->runtests( @tests );          $h->runtests( @tests );
104    
# Line 128  sub as_markup { Line 135  sub as_markup {
135                  . qq|<ul><li>|                  . qq|<ul><li>|
136                  . join("</li>\n<li>",                  . join("</li>\n<li>",
137                          map {                          map {
138                                  qq|<a href="#$_"><tt>$_</tt></a> &larr; |                                  qq|<a href="?test=$_"><tt>$_</tt></a> &larr; |
139                                  .                                  .
140                                  join(' ',                                  join(' ',
141                                          map {                                          map {
# Line 145  sub as_markup { Line 152  sub as_markup {
152                  ;                  ;
153          }          }
154                    
155            $running = 0;
156            return $html;
157  }  }
158    
159  1;  1;

Legend:
Removed from v.512  
changed lines
  Added in v.525

  ViewVC Help
Powered by ViewVC 1.1.26