[Koha-bugs] [Bug 8879] New: silence messages from running prove ./t ./xt

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 5 09:44:32 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8879

          Priority: P5 - low
 Change sponsored?: ---
            Bug ID: 8879
          Assignee: gmcharlt at gmail.com
           Summary: silence messages from running prove ./t ./xt
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: mtj at kohaaloha.com
          Hardware: All
            Status: NEW
           Version: master
         Component: Test Suite
           Product: Koha

if you run the tests for Koha, it PASSES all tests.
but also generates a lot of unnecessary warning messages :/

this bug attempts to track, and silence these messages

below is an example of the 'noisy' tests...

koha.git$ prove ./t ./xt
t/00-checkdatabase-version.t ........ ok   
t/00-deprecated.t ................... ok   
t/00-load.t ......................... 11/? Too late to run INIT block at
/home/mason/git/head/C4/Barcodes/hbyymmincr.pm line 41.
t/00-load.t ......................... 72/? Too late to run INIT block at
/home/mason/git/head/C4/External/BakerTaylor.pm line 42.
t/00-load.t ......................... ok     
t/00-merge-conflict-markers.t ....... ok      
t/00-testcritic.t ................... skipped: Author test. Set $ENV{TEST_QA}
to a true value to run
t/00-valid-xml.t .................... ok     
t/AuthoritiesMarc.t ................. ok   
t/AuthoritiesMarc_MARC21.t .......... ok   
t/AuthoritiesMarc_UNIMARC.t ......... ok   
t/Barcodes_EAN13.t .................. ok   
t/Barcodes_PrinterConfig.t .......... ok   
t/Barcodes_ValueBuilder.t ........... ok     
t/Barcodes_annual.t ................. ok   
t/Barcodes_hbyymmincr.t ............. ok   
t/Barcodes_incremental.t ............ ok   
t/Bookseller.t ...................... ok   
t/Boolean.t ......................... 1/13 The given value does not seem to be
interpretable as a Boolean value at t/Boolean.t line 20.
The given value does not seem to be interpretable as a Boolean value at
t/Boolean.t line 21.
The given value does not seem to be interpretable as a Boolean value at
t/Boolean.t line 22.
t/Boolean.t ......................... ok     
t/Branch.t .......................... ok   
t/Breeding.t ........................ ok   
t/Budgets.t ......................... ok   
t/Cache.t ........................... 1/9 Use of uninitialized value in split
at /home/mason/git/head/Koha/Cache/Memcached.pm line 31.
t/Cache.t ........................... ok   
t/Cache_Memcached.t ................. ok   
t/Calendar.t ........................ ok     
t/Category.t ........................ ok   
t/Charset.t ......................... ok   
t/Circulation_barcodedecode.t ....... ok     
t/ClassSortRoutine.t ................ ok   
t/ClassSortRoutine_Dewey.t .......... ok   
t/ClassSortRoutine_Generic.t ........ ok   
t/ClassSortRoutine_LCC.t ............ ok   
t/ClassSource.t ..................... ok   
t/Contract.t ........................ ok   
t/Creators.t ........................ ok     
t/DateUtils.t ....................... ok     
t/Dates.t ........................... 1/327 # 
# In order to run without DB access, this test will substitute 'us'
# as your default date format.  Export environmental variable
KOHA_TEST_DATE_FORMAT
# to override this default, or pass the value as an argument to this test
script.
# 
# NOTE: we test for the system handling dd=00 and 00 for TIME values, therefore
# you SHOULD see some warnings like:
# Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t ...
# 
# Testing Legacy Functions: format_date and format_date_in_iso
# 
Illegal date specified (year = 1952, month = 1, day = 0) at t/Dates.t line 61.
Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 61.
Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 64.
# 
# Testing 5 formats.
# Testing no input (defaults):
# 
# Testing with valid inputs:
Illegal date specified (year = 1952, month = 1, day = 0) at t/Dates.t line 83.
Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 83.
Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 83.
Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 83.
Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 83.
Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 83.
t/Dates.t ........................... 320/327 # 
# Testing object independence from class
# done.
t/Dates.t ........................... ok       
t/Debug.t ........................... # BEFORE use:     $debug is not defined
# BEFORE use: $cgi_debug is not defined
t/Debug.t ........................... 1/5 #  AFTER use:     $debug is 5
#  AFTER use: $cgi_debug is 2
# Done.
t/Debug.t ........................... ok   
t/External_Syndetics.t .............. ok   
t/Form_MessagingPreferences.t ....... ok   
t/Heading.t ......................... ok   
t/ILSDI_Services.t .................. ok   
t/ILSDI_Utility.t ................... ok   
t/Images.t .......................... ok   
t/ImportBatch.t ..................... ok   
t/Input.t ........................... ok   
t/Installer_PerlDependencies.t ...... ok   
t/Installer_PerlModules.t ........... ok     
t/Installer_pm.t .................... ok   
t/ItemCirculationAlertPreference.t .. ok   
t/ItemType.t ........................ ok     
t/Koha.t ............................ ok   
t/Labels.t .......................... 1/6 Use of uninitialized value $llx in
concatenation (.) or string at /home/mason/git/head/C4/Labels/Label.pm line 68.
Use of uninitialized value $lly in concatenation (.) or string at
/home/mason/git/head/C4/Labels/Label.pm line 68.
Use of uninitialized value $width in concatenation (.) or string at
/home/mason/git/head/C4/Labels/Label.pm line 68.
Use of uninitialized value $height in concatenation (.) or string at
/home/mason/git/head/C4/Labels/Label.pm line 68.
Use of uninitialized value $_ in string eq at
/home/mason/git/head/C4/Labels/Label.pm line 103.
Use of uninitialized value $_ in pattern match (m//) at
/home/mason/git/head/C4/Labels/Label.pm line 116.
Use of uninitialized value $_ in sprintf at
/home/mason/git/head/C4/Labels/Label.pm line 126.
regexp failed to match string:  at /home/mason/git/head/C4/Labels/Label.pm line
126.
Use of uninitialized value in split at /home/mason/git/head/C4/Labels/Label.pm
line 129.
t/Labels.t .......................... ok   
t/Labels_split_ccn.t ................ ok     
t/Labels_split_ddcn.t ............... ok     
t/Labels_split_lccn.t ............... ok     
t/Languages.t ....................... 1/4 accept_language(x,y) called with no
clientPreferences (x). at t/Languages.t line 19.
t/Languages.t ....................... ok   
t/Letters.t ......................... ok   
t/Log.t ............................. ok   
t/Maintainance.t .................... ok   
t/Matcher.t ......................... ok     
t/Members_AttributeTypes.t .......... ok   
t/Members_Attributes.t .............. ok     
t/Members_Messaging.t ............... ok   
t/Message.t ......................... ok   
t/NewsChannels.t .................... ok   
t/Output.t .......................... ok   
t/Output_JSONStream.t ............... ok   
t/Overdues.t ........................ ok   
t/Patroncards.t ..................... ok   
t/Patroncards_Batch.t ............... ok   
t/Patroncards_Layout.t .............. ok   
t/Patroncards_Lib.t ................. ok   
t/Patroncards_Patroncard.t .......... ok   
t/Patroncards_Profile.t ............. ok   
t/Patroncards_Template.t ............ ok   
t/Print.t ........................... ok   
t/RecordProcessor.t ................. ok    
t/Review.t .......................... ok   
t/Ris.t ............................. ok   
t/RotatingCollections.t ............. ok   
t/SIP_Sip.t ......................... 1/8 verify_cksum: no sum detected at
/home/mason/git.xen1/head/t/../C4/SIP/Sip/Checksum.pm line 24.
t/SIP_Sip.t ......................... ok   
t/SMS.t ............................. ok   
t/Scheduler.t ....................... 1/6 You do not have permission to use
atq.
You do not have permission to use atq.
You do not have permission to use atq.
You do not have permission to use atq.
t/Scheduler.t ....................... ok   
t/Scrubber.t ........................ 1/19 # Note: scrubber test output will
have whitespace collapsed for readability
# done.
t/Scrubber.t ........................ ok     
t/Search_PazPar2.t .................. 1/8 400 URL must be absolute at
/home/mason/git/head/C4/Search/PazPar2.pm line 68.
400 URL must be absolute at /home/mason/git/head/C4/Search/PazPar2.pm line 84.
400 URL must be absolute at /home/mason/git/head/C4/Search/PazPar2.pm line 99.
400 URL must be absolute at /home/mason/git/head/C4/Search/PazPar2.pm line 121.
400 URL must be absolute at /home/mason/git/head/C4/Search/PazPar2.pm line 142.
400 URL must be absolute at /home/mason/git/head/C4/Search/PazPar2.pm line 159.
t/Search_PazPar2.t .................. ok   
t/SocialData.t ...................... ok   
t/Stats.t ........................... ok   
t/SuggestionEngine.t ................ ok    
t/SuggestionEngine_AuthorityFile.t .. ok   
t/SuggestionEngine_ExplodedTerms.t .. ok   
t/TmplToken.t ....................... ok     
t/Utils.t ........................... ok   
t/VirtualShelves_Merge.t ............ ok   
t/XSLT.t ............................ ok   
t/Z3950.t ........................... ok   
t/dummy.t ........................... ok   
xt/permissions.t .................... ok    
xt/tt_valid.t ....................... ok   
xt/yaml_valid.t ..................... ok     
All tests successful.
Files=98, Tests=5986, 72 wallclock secs ( 0.60 usr  0.33 sys + 23.86 cusr  3.08
csys = 27.87 CPU)
Result: PASS

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list