Skip Menu |

This queue is for tickets about the TAP-Formatter-HTML CPAN distribution.

Report information
The Basics
Id: 41026
Status: rejected
Priority: 0/
Queue: TAP-Formatter-HTML

People
Owner: Nobody in particular
Requestors: vladimir.lapacek [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.06
Fixed in: (no value)



Subject: Test::More output not parsed correctly
I am using Test::More module to run tests and TAP-Formatter-HTML to generate the results in form of HTML page. When I use perl module Expect to connect via ssh in my tests and the Expect logging to console is turned on (default value) the result is parsed incorrectly. But the test runs ok. Problem is that the test output is not in the new line but is included into the output from Expect (so output from ssh session). I am using perl, v5.8.5 built for i386-linux-thread-multi running on Linux 2.6.18-1.2849prerel3.0.2_60.68.0 #1 SMP Fri Nov 2 00:06:55 EDT 2007 i686 i686 i386 GNU/Linux This is the error message I got in the generated page: * Parse error: Tests out of sequence. Found (6) but expected (2) * Parse error: Tests out of sequence. Found (11) but expected (3) * Parse error: Tests out of sequence. Found (12) but expected (4) * Parse error: Bad plan. You planned 12 tests but ran 4. This is part of the output, when you can see that test number 2 was executed (but not correctly found): # Testing goBlade script # Last login: Tue Nov 18 10:42:58 2008 from ****** # ]0;root@lexus:~[root@lexus ~]# ok 2 - ssh expected prompt # ... And so on for other tests. Only test numbered 1, 6, 11, and 12 are on their own line so it is identified. When I turned the output from excpect off, whole test case runs corretly. I am using use Test::More qw(no_plan);
Thanks for the bug reports & patches - unfortunately I've only just seen this, so this won't be in for 0.07. Should be in for 0.08.
On Mon Feb 02 18:00:34 2009, SPURKIS wrote: Show quoted text
> Thanks for the bug reports & patches - unfortunately I've only just > seen this, so this won't be in > for 0.07. Should be in for 0.08. >
Argh... wrong ticket! For this one - I'll need to investigate more. Not sure if it's a problem with Test::More, TAP::Parser, or TFH.
On Tue Nov 18 08:35:15 2008, vladimir.lapacek wrote: Show quoted text
> I am using Test::More module to run tests and TAP-Formatter-HTML to > generate the results in form of HTML page. > When I use perl module Expect to connect via ssh in my tests and the > Expect logging to console is turned on (default value) the result is > parsed incorrectly. > But the test runs ok. > Problem is that the test output is not in the new line but is included > into the output from Expect (so output from ssh session).
Hi Vladimir, Did you ever get to the bottom of this? If not, I suspect TAP::Parser is doing what it should do - taking in output to STDIN (and STDERR if you've used the 'merge' param), and parsing it as TAP. If you'd rather not have the output from your SSH command to be interpreted as TAP, I'd suggest redirecting it to another filehandle. If Expect gives you no control over this, then I'd suggest putting together a patch to allow it & submitting it to the Expect module. I'm marking this as 'rejected' as I don't think it's a problem with TAP::Formatter::HTML. Happy to help further on it if need be. -Steve