Skip Menu |
 

This queue is for tickets about the Test-Run-Plugin-AlternateInterpreters CPAN distribution.

Report information
The Basics
Id: 64286
Status: resolved
Priority: 0/
Queue: Test-Run-Plugin-AlternateInterpreters

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

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



Subject: Constraint problem while running the tests
Date: Tue, 28 Dec 2010 15:51:02 +0200
To: bug-test-run-plugin-alternateinterpreters [...] rt.cpan.org
From: Thomas Maier <hayzer [...] gmail.com>
Download (untitled) / with headers
text/plain 3.2k
Hi Shlomi, I just tried to use Test::Run as follow: {{{ HARNESS_PLUGINS="ColorSummary ColorFileVerdicts AlternateInterpreters" runprove t/ }}} And get the follow error: {{{ t/001-setup .......................... Attribute (alternate_interpreters) does not pass the type constraint because: Validation failed for 'ArrayRef' with value undef at /usr/local/share/perl/5.10.1/Test/Run/Plugin/AlternateInterpreters.pm line 44 Test::Run::Plugin::AlternateInterpreters::_init_strap('Test::Run::Iface=HASH(0x9cf5e70)', 'HASH(0x9d2e060)') called at /usr/local/share/perl/5.10.1/Test/Run/Core.pm line 770 Test::Run::Core::_time_single_test('Test::Run::Iface=HASH(0x9cf5e70)', 'HASH(0x9d2e060)') called at /usr/local/share/perl/5.10.1/Test/Run/Base.pm line 190 Test::Run::Base::_run_sequence('Test::Run::Iface=HASH(0x9cf5e70)', 'ARRAY(0x9d2e070)') called at /usr/local/share/perl/5.10.1/Test/Run/Core.pm line 1323 Test::Run::Core::_run_single_test('Test::Run::Iface=HASH(0x9cf5e70)', 'HASH(0x9d2e060)') called at /usr/local/share/perl/5.10.1/Test/Run/Core.pm line 1589 Test::Run::Core::_run_all_tests_loop('Test::Run::Iface=HASH(0x9cf5e70)') called at /usr/local/share/perl/5.10.1/Test/Run/Core.pm line 1600 Test::Run::Core::__ANON__() called at /usr/local/share/perl/5.10.1/Test/Run/Obj/TotObj.pm line 443 Test::Run::Obj::TotObj::benchmark_callback('Test::Run::Core::__HelperObjects::Helpers::Tot=HASH(0x9cffb48)', 'CODE(0x9cfa428)') called at /usr/local/share/perl/5.10.1/Test/Run/Core.pm line 1602 Test::Run::Core::_run_all_tests__run_loop('Test::Run::Iface=HASH(0x9cf5e70)') called at /usr/local/share/perl/5.10.1/Test/Run/Base.pm line 190 Test::Run::Base::_run_sequence('Test::Run::Iface=HASH(0x9cf5e70)') called at /usr/local/share/perl/5.10.1/Test/Run/Core.pm line 1625 Test::Run::Core::_run_all_tests('Test::Run::Iface=HASH(0x9cf5e70)') called at /usr/local/share/perl/5.10.1/Test/Run/Base.pm line 190 Test::Run::Base::_run_sequence('Test::Run::Iface=HASH(0x9cf5e70)') called at /usr/local/share/perl/5.10.1/Test/Run/Core.pm line 1420 Test::Run::Core::_real_runtests('Test::Run::Iface=HASH(0x9cf5e70)') called at /usr/local/share/perl/5.10.1/Test/Run/Core.pm line 1431 eval {...} called at /usr/local/share/perl/5.10.1/Test/Run/Core.pm line 1431 Test::Run::Core::runtests('Test::Run::Iface=HASH(0x9cf5e70)') called at /usr/local/share/perl/5.10.1/Test/Run/CmdLine.pm line 145 Test::Run::CmdLine::run('Test::Run::CmdLine::Drivers::Default=HASH(0x8f0a550)') called at /usr/local/share/perl/5.10.1/Test/Run/CmdLine/Iface.pm line 193 Test::Run::CmdLine::Iface::run('Test::Run::CmdLine::Iface=HASH(0x8f0a050)') called at /usr/local/share/perl/5.10.1/Test/Run/CmdLine/Prove.pm line 315 Test::Run::CmdLine::Prove::_wet_run('Test::Run::CmdLine::Prove=HASH(0x8f09d30)', 'ARRAY(0x8ee5968)') called at /usr/local/share/perl/5.10.1/Test/Run/CmdLine/Prove.pm line 294 Test::Run::CmdLine::Prove::_actual_run_tests('Test::Run::CmdLine::Prove=HASH(0x8f09d30)', 'ARRAY(0x8ee5968)') called at /usr/local/share/perl/5.10.1/Test/Run/CmdLine/Prove.pm line 271 Test::Run::CmdLine::Prove::run('Test::Run::CmdLine::Prove=HASH(0x8f09d30)') called at /usr/local/share/perl/5.10.1/Test/Run/CmdLine/Prove/App.pm line 23 Test::Run::CmdLine::Prove::App::run() called at /usr/local/bin/runprove line 10 }}} Regards, Thomas
Download (untitled) / with headers
text/plain 1.1k
Hi Thomas, thanks for your interest in Test-Run. On Tue Dec 28 08:51:41 2010, hayzer@gmail.com wrote: Show quoted text
> Hi Shlomi, > I just tried to use Test::Run as follow: > {{{ > HARNESS_PLUGINS="ColorSummary ColorFileVerdicts AlternateInterpreters" > runprove t/ > }}} > > And get the follow error: > {{{ > t/001-setup .......................... Attribute > (alternate_interpreters) does not pass the type constraint because: > Validation failed for 'ArrayRef' with value undef at > /usr/local/share/perl/5.10.1/Test/Run/Plugin/AlternateInterpreters.pm > line 44 >
All this is Moose's way of saying that the alternate_interpreters slot was not populated with an a array ref. To fix it, follow the instructions on http://search.cpan.org/perldoc?Test::Run::CmdLine::Plugin::AlternateInterpreters and point the HARNESS_ALT_INTRP_FILE environment variable to a YAML file that contains the necessary information (or remove the AlternateInterpreters plugin from HARNESS_PLUGINS if you don't need it.). Maybe I should throw a more meaningful exception if HARNESS_ALT_INTRP_PLUGINS is not specified. I'll consider it. Regards, -- Shlomi Fish
Subject: Re: [rt.cpan.org #64286] Constraint problem while running the tests
Date: Thu, 30 Dec 2010 14:07:34 +0200
To: bug-Test-Run-Plugin-AlternateInterpreters [...] rt.cpan.org
From: Thomas Maier <hayzer [...] gmail.com>
Download (untitled) / with headers
text/plain 1.2k
Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=64286 > > > Hi Thomas, > > thanks for your interest in Test-Run. > > On Tue Dec 28 08:51:41 2010, hayzer@gmail.com wrote:
>> Hi Shlomi, >> I just tried to use Test::Run as follow: >> {{{ >> HARNESS_PLUGINS="ColorSummary ColorFileVerdicts AlternateInterpreters" >> runprove t/ >> }}} >> >> And get the follow error: >> {{{ >> t/001-setup .......................... Attribute >> (alternate_interpreters) does not pass the type constraint because: >> Validation failed for 'ArrayRef' with value undef at >> /usr/local/share/perl/5.10.1/Test/Run/Plugin/AlternateInterpreters.pm >> line 44 >>
> > All this is Moose's way of saying that the alternate_interpreters slot > was not populated with an a array ref. To fix it, follow the > instructions on > http://search.cpan.org/perldoc?Test::Run::CmdLine::Plugin::AlternateInterpreters
Ups. Missed that. Sorry. Thanks Show quoted text
> > and point the HARNESS_ALT_INTRP_FILE environment variable to a YAML file > that contains the necessary information (or remove the > AlternateInterpreters plugin from HARNESS_PLUGINS if you don't need it.). > > Maybe I should throw a more meaningful exception if > HARNESS_ALT_INTRP_PLUGINS is not specified. I'll consider it. > > Regards, > > -- Shlomi Fish > >
Fixed.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.