public
Description: A set of Perl modules to work with SAPO Broker
Homepage:
Clone URL: git://github.com/melo/perl-sapo-broker.git
Add support for TAP::Formatter::HTML

To have HTML reports, you need to install TAP::Formatter::HTML and then:

    TEST_USE_HTML_REPORT=1 ./devel/run_all_tests.sh

You can add TEST_USE_HTML_REPORT to your environment to use them by default.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
melo (author)
Tue Sep 02 03:14:24 -0700 2008
commit  0dd0230951e709fe1a8b5e3042fa778dd53ab438
tree    8a5ec48b81a3fd626cf16f8e86177726d3f80577
parent  6bcdac0e15360a7867b785eff8100715e5fc93ba
...
2
3
4
5
6
7
8
9
10
11
12
13
14
 
 
 
 
 
 
 
 
 
...
2
3
4
 
 
 
 
 
 
 
 
 
 
5
6
7
8
9
10
11
12
13
0
@@ -2,13 +2,12 @@
0
 
0
 export PERL5LIB=`pwd`/Protocol-SAPO-Broker/lib
0
 
0
-(
0
-  cd Protocol-SAPO-Broker
0
-  prove -l -v t/[0-9]*
0
-)
0
-
0
-(
0
-  cd Net-SAPO-Broker
0
-  prove -l -v t/0*
0
-)
0
-
0
+if [ -z "$TEST_USE_HTML_REPORT"] ; then
0
+  prove_cmd='prove -l -m -Q --formatter=TAP::Formatter::HTML > output.html ; open output.html'
0
+else
0
+  prove_cmd='prove -l -v'
0
+fi
0
+
0
+for dir in Protocol-SAPO-Broker Net-SAPO-Broker ; do
0
+  sh -c "cd $dir; $prove_cmd"
0
+done

Comments