in reply to Selenium RC and Perl

It only prints what tests scripts and what specific tests failed.

I don't know what you mean. It prints what you tell it to print.

use strict; use warnings; use Test::More tests => 1; is(1, 2, "foo") or diag("bar");
a.t .. 1/1 # Failed test 'foo' # at a.t line 6. # got: '1' # expected: '2' # bar # Looks like you failed 1 test of 1. a.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests Test Summary Report ------------------- a.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.01 cusr + 0.00 csys = 0.03 CPU) Result: FAIL Failed 1/1 test programs. 1/1 subtests failed.

Replies are listed 'Best First'.
Re^2: Selenium RC and Perl
by SelPerl (Initiate) on Apr 27, 2010 at 04:00 UTC
    Sorry if that was vague. The situation is that I am running two subtests in parallel, each having different configurations (host, browser, etc). They run at the same time so their outputs were mixed in the console. Now I want the summary report to be detailed so that I would know which particular configuration failed. Thanks.

      Maybe you can have each test script write its output to its own log file, avoiding the interleaving of outputs on the console. Maybe you can do something like what is suggested in Redirect output of Test::More/Simple.

      update: For Test::Harness, see execute_tests in Test::Harness.

      I don't know if that's possible. Sounds to me the real problem is that you're mixing the outputs.

        Yes, I thought that it must be the real problem but I don't have any idea on how to "separate" them. I am using Thread::Pool::Simple to obtain parallelism as suggested in this article.
        SelPerl here. is the post above me a bug?