From 0dd0230951e709fe1a8b5e3042fa778dd53ab438 Mon Sep 17 00:00:00 2001 From: Pedro Melo Date: Tue, 2 Sep 2008 11:14:24 +0100 Subject: [PATCH] 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 --- devel/run_all_tests.sh | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/devel/run_all_tests.sh b/devel/run_all_tests.sh index 337be0b..aafd90e 100755 --- a/devel/run_all_tests.sh +++ b/devel/run_all_tests.sh @@ -2,13 +2,12 @@ export PERL5LIB=`pwd`/Protocol-SAPO-Broker/lib -( - cd Protocol-SAPO-Broker - prove -l -v t/[0-9]* -) - -( - cd Net-SAPO-Broker - prove -l -v t/0* -) - +if [ -z "$TEST_USE_HTML_REPORT"] ; then + prove_cmd='prove -l -m -Q --formatter=TAP::Formatter::HTML > output.html ; open output.html' +else + prove_cmd='prove -l -v' +fi + +for dir in Protocol-SAPO-Broker Net-SAPO-Broker ; do + sh -c "cd $dir; $prove_cmd" +done