/[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 519 by dpavlin, Tue Nov 25 17:15:18 2008 UTC
# Line 59  has depends => ( Line 59  has depends => (
59          },          },
60  );  );
61    
62    our $running;
63    exit if $running;
64    
65  sub as_markup {  sub as_markup {
66          my ($self) = @_;          my ($self) = @_;
67    
68            return 'allready running' if $running;
69            $running = 1;
70    
71          my $f = TAP::Formatter::HTML->new({          my $f = TAP::Formatter::HTML->new({
72  #               silent => 1,  #               silent => 1,
73    
# Line 92  sub as_markup { Line 98  sub as_markup {
98                  @tests = glob('t/*.t');                  @tests = glob('t/*.t');
99          }          }
100    
101            $self->title( join(' ', @tests ) );
102    
103          warn "testing ",dump( @tests );          warn "testing ",dump( @tests );
104          $h->runtests( @tests );          $h->runtests( @tests );
105    
# Line 128  sub as_markup { Line 136  sub as_markup {
136                  . qq|<ul><li>|                  . qq|<ul><li>|
137                  . join("</li>\n<li>",                  . join("</li>\n<li>",
138                          map {                          map {
139                                  qq|<a href="#$_"><tt>$_</tt></a> &larr; |                                  qq|<a href="?test=$_"><tt>$_</tt></a> &larr; |
140                                  .                                  .
141                                  join(' ',                                  join(' ',
142                                          map {                                          map {
# Line 145  sub as_markup { Line 153  sub as_markup {
153                  ;                  ;
154          }          }
155                    
156            $running = 0;
157            return $html;
158  }  }
159    
160  1;  1;

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

  ViewVC Help
Powered by ViewVC 1.1.26