Skip to content

Commit

Permalink
Add support for TAP::Formatter::HTML
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
melo committed Sep 2, 2008
1 parent 6bcdac0 commit 0dd0230
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions devel/run_all_tests.sh
Expand Up @@ -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

0 comments on commit 0dd0230

Please sign in to comment.