[Koha-bugs] [Bug 2483] New: t/Barcodes.t has database dependent tests in it

bugzilla-daemon at pippin.metavore.com bugzilla-daemon at pippin.metavore.com
Thu Aug 7 16:43:29 CEST 2008


http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2483

           Summary: t/Barcodes.t has database dependent tests in it
           Product: Koha
           Version: HEAD
          Platform: PC
               URL: http://dpaste.com/69992/
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Test Suite
        AssignedTo: Andrew.moore at liblime.com
        ReportedBy: Andrew.moore at liblime.com
         QAContact: koha-bugs at lists.koha.org


It was reported on IRC that there is still a test in t/Barcodes.t that depends
on a working database. This should be moved to the database dependent tests.


# make test
PERL_DL_NONLAZY=1 KOHA_CONF=blib/KOHA_CONF_DIR/koha-conf.xml /usr/bin/perl5.8.8
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/PERL_MODULE_DIR',
'blib/arch')" t/*.t
t/Amazon......................ok   
t/Barcodes....................1/49 DBD::mysql::db selectrow_array failed: Table
'koha.systempreferences' doesn't exist at
/home/johnny/dev/kohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 479.
Use of uninitialized value in hash element at
/home/johnny/dev/kohaclone/blib/PERL_MODULE_DIR/C4/Dates.pm line 127.
Use of uninitialized value in concatenation (.) or string at
/home/johnny/dev/kohaclone/blib/PERL_MODULE_DIR/C4/Dates.pm line 127.
Invalid date format '' from system preferences at
/home/johnny/dev/kohaclone/blib/PERL_MODULE_DIR/C4/Barcodes/annual.pm line 55
# Looks like you planned 49 tests but only ran 1.
# Looks like your test died just after 1.
t/Barcodes.................... Dubious, test returned 255 (wstat 65280, 0xff00)
 Failed 48/49 subtests 
t/Barcodes_PrinterConfig......ok   
t/Bookfund....................ok   
t/Bookseller..................ok   
t/Boolean.....................ok     
t/Branch......................ok   
t/Calendar....................ok   
t/Charset.....................ok   
t/Debug.......................# BEFORE use:     $debug is not defined
# BEFORE use: $cgi_debug is not defined
t/Debug.......................1/3 #  AFTER use:     $debug is 0
#  AFTER use: $cgi_debug is 0
# Done.
t/Debug.......................ok   
t/dummy.......................ok   
t/Input.......................ok   
t/Koha........................ok   
t/Languages...................ok   
t/Maintainance................ok   
t/Output......................ok   
t/Record......................ok   
t/Review......................ok   
t/Scrubber....................1/10 # Note: scrubber test output will have
whitespace collapsed for readability
# done.
t/Scrubber....................ok     
t/Stats.......................ok   

Test Summary Report
-------------------
t/Barcodes.t              (Wstat: 65280 Tests: 1 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 49 tests but ran 1.
Files=20, Tests=48,  5 wallclock secs ( 0.11 usr  0.04 sys +  3.92 cusr  0.45
csys =  4.52 CPU)
Result: FAIL
Failed 1/20 test programs. 0/48 subtests failed.
make: *** [test_dynamic] Error 255




------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the Koha-bugs mailing list