[Dancer-users] app works fine but testing fails

WK wanradt at gmail.com
Tue Oct 25 19:30:39 CEST 2011


Terr!

I made a little sample app to check out SimpleCRUD plugin, it works
fine but when trying to run standard tests bundled with Dancer tests
fail like this:

$ perl -Ilib t/001_base.t
1..1
Use of uninitialized value in concatenation (.) or string at
/home/wanradt/perl5/lib/perl5/Dancer/Plugin/Database.pm line 103.
Use of uninitialized value in string eq at
/home/wanradt/perl5/lib/perl5/Dancer/Plugin/Database.pm line 112.
not ok 1 - use keel;
#   Failed test 'use keel;'
#   at t/001_base.t line 5.
#     Tried to use 'keel'.
#     Error:  Can't connect to data source 'dbi:' because I can't work
out what driver to use (it doesn't seem to contain a 'dbi:driver:'
prefix and the DBI_DRIVER env var is not set) at
/home/wanradt/perl5/lib/perl5/Dancer/Plugin/Database.pm line 147
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
# Looks like you failed 1 test of 1.

What is problem here? Why test can't see app configuration and use it
for DB connection?

-- 
Wbr,
Kõike hääd,

Gunnar


More information about the Dancer-users mailing list