I'm trying to set up application testing the with module described in
the subject.
However, when my application is loaded in the testscript with:
use_ok ('Test::WWW::Mechanize::Catalyst', 'CalApp');
my $u = Test::WWW::Mechanize::Catalyst-new;
most of the things I've setup to be done on
Marius Kjeldahl wrote:
I'm trying to set up application testing the with module described in
the subject.
However, when my application is loaded in the testscript with:
use_ok ('Test::WWW::Mechanize::Catalyst', 'CalApp');
my $u = Test::WWW::Mechanize::Catalyst-new;
Have you tried the next
ivorw wrote:
Have you tried the next step, which is usually
$u-get_ok( 'http://localhost/', 'Request should succeed' );
Yes,
my $APPLOC = 'http://localhost/calapp/no';
$u-get_ok ($APPLOC, 'Application startup');
fails with:
Couldn't instantiate component CalApp::Model::CalAppDB, Either
I have been using Cover::Devel with my catalyst test, which works very
nicely.
However, I have a REST controller, and I would like to run
myapp_server.pl with code coverage, and then run tests against it.
Has anyone successfully collected code coverage results from the server
script? None
On Thu, 2008-07-31 at 07:57 -0700, Russ Weight wrote:
Has anyone successfully collected code coverage results from the server
script? None of my attempts so far have succeeded in creating a valid
code-coverage database.
I have got it to work with a standard:
perl -d:Cover
Iain Hubbard wrote:
On Thu, 2008-07-31 at 07:57 -0700, Russ Weight wrote:
Has anyone successfully collected code coverage results from the server
script? None of my attempts so far have succeeded in creating a valid
code-coverage database.
I have got it to work with a standard:
perl
Marius Kjeldahl wrote:
my $APPLOC = 'http://localhost/calapp/no';
$u-get_ok ($APPLOC, 'Application startup');
fails with:
Couldn't instantiate component CalApp::Model::CalAppDB, Either
-config-{connect_info} must be defined for CalApp::Model::CalAppDB
or CalAppDB must have connect info
Oops! Typo alert!
The config file of course wouldn't have db in the name, but would be
calapp.conf or calapp.yml
ivorw wrote:
Marius Kjeldahl wrote:
my $APPLOC = 'http://localhost/calapp/no';
$u-get_ok ($APPLOC, 'Application startup');
fails with:
Couldn't instantiate component
ivorw wrote:
I've seen this or similar. It's usually an indication that the Catalyst
code is failing to see the config file (calappdb.yml or calappdb.conf),
when you are defining the DBI parameters here rather than hardcoding
them inside CalApp::Model::CalAppDB.pm which the helper script does
On Wed, Jul 30, 2008 at 12:02:08PM +0100, Ash Berlin wrote:
On 30 Jul 2008, at 02:27, John Beppu wrote:
On Tue, Jul 29, 2008 at 5:21 AM, Daniel McBrearty
[EMAIL PROTECTED] wrote:
my 0.05 (possibly a bit OT) :
Off-topic or not, I think these are interesting and valid questions.
On Wed, Jul 30, 2008 at 01:38:00PM +0200, Moritz Onken wrote:
Hi,
I tried to set some config options for a controller with the config
file.
YAML-code:
---
name: MyApp
Controller::Root:
key: value
I'm using ConfigLoader and the debug shows that it successfully loaded
the
11 matches
Mail list logo