Skip Menu |

This queue is for tickets about the Test-Continuous CPAN distribution.

Report information
The Basics
Id: 66401
Status: resolved
Priority: 0/
Queue: Test-Continuous

People
Owner: Nobody in particular
Requestors: nelo.onyiah [...] gmail.com
Cc:
AdminCc:

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



Subject: Warnings (I think) being raised by Test::Continuous
Hi, When I run autoprove in my working directory I get the following output: $ autoprove [MSG] Will be continuously testing /Users/io1/Documents/modern_perl/http-server- simple/t/myserver.t [MSG] Will be continuously testing /Users/io1/Documents/modern_perl/http-server- simple/t/replace_http_library.t [MSG]:/Users/io1/Documents/modern_perl/http-server-simple/lib/MyServer.pm was changed. 49:62: syntax error: A “"” can’t go after this class name. (-2740) ALL PASSED 37:55: syntax error: A class name can’t go after this identifier. (-2740) I've tried separate sets of code and still get exactly the same warning. My environment details are as follows: $ perl -v This is perl 5, version 12, subversion 3 (v5.12.3) built for darwin-2level $ uname -a Darwin mib19412i.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386 i386 MacBook2,1 Darwin $ perlbrew version /Users/io1/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.15 Thank you.
On Sat Mar 05 13:43:20 2011, https://j1n3l0.myopenid.com/ wrote: Show quoted text
> Hi, > > When I run autoprove in my working directory I get the following > output: > > $ autoprove > [MSG] Will be continuously testing > /Users/io1/Documents/modern_perl/http-server- > simple/t/myserver.t > [MSG] Will be continuously testing > /Users/io1/Documents/modern_perl/http-server- > simple/t/replace_http_library.t > [MSG]:/Users/io1/Documents/modern_perl/http-server- > simple/lib/MyServer.pm was > changed. > 49:62: syntax error: A “"” can’t go after this class name. (-2740) > ALL PASSED > 37:55: syntax error: A class name can’t go after this identifier. (- > 2740)
Interesting. To my knowledge, these errors might be cause by the fact that your code does contain some syntax error. However, the "ALL PASSED" message suggests that the framework you're using might catch the error and decide to do nothing about the syntax error. I'd suggest you to simply try "prove" instead of "autoprove". "autoprove" should just work like "prove" except that it iterates endlessly, and you should always fallback to use `prove` whenever you consider the problem is in Test::Continuous. If `prove` does not yield the syntax error message, let's figure our why `autoprove` triggers it.
Hi, I did try prove and it gives me the expected (correct) output. What I found strange is that the warnings were exactly the same no matter which codebase I was testing. That's what led me to believe the problem might be with autoprove. I've attached one of the codebases I was playing about with if you'd like to take a look. I could only find the following common dependencies: $ dzil listdeps ExtUtils::MakeMaker File::Find File::Temp Test::More Test::Most They all look fairly standard and unlikely to be the source of our error. Finally I should point out that my PERL5OPT is set to '-w'. I forgot to mention that earlier. Thank you.
Subject: EnsemblUtils.zip
Download EnsemblUtils.zip
application/zip 5.1k

Message body not shown because it is not plain text.

Hi, I think you can close this ticket now. I have since changed computers after the old one (where this bug appeared) crashed. Now when I run this exact same code on my new machine, it works as advertised in the docs. Thank you. On Sun Mar 06 03:10:44 2011, https://j1n3l0.myopenid.com/ wrote: Show quoted text
> Hi, > > I did try prove and it gives me the expected (correct) output. What I > found strange is that the > warnings were exactly the same no matter which codebase I was testing. > That's what led me > to believe the problem might be with autoprove. > > I've attached one of the codebases I was playing about with if you'd > like to take a look. I could > only find the following common dependencies: > > $ dzil listdeps > ExtUtils::MakeMaker > File::Find > File::Temp > Test::More > Test::Most > > They all look fairly standard and unlikely to be the source of our > error. Finally I should point > out that my PERL5OPT is set to '-w'. I forgot to mention that earlier. > > Thank you.