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);