view · edit · sidebar · attach · print · history

20110225-testcases-oddb_org

<< Masa.20110228-testcases-oddb_org | 2011 | Masa.20110224-export-order-xls-bbmb >>


  1. Check current status
  2. Update test-cases
  3. Update test-cases patinfo
  4. Update test/test_state/suite.rb

Goal/Estimate
  • test-cases invoicer / 100%
  • test-cases patinfo / 80%
Milestones
  1. Check current
  2. Update test-cases 9:00
Summary
Commits

Check current status

masa@masa ~/ywesee/oddb.org/test/test_plugin $ rcov patinfo_invoicer.rb 
Loaded suite /usr/bin/rcov
Started
......
Finished in 0.00918 seconds.

6 tests, 21 assertions, 0 failures, 0 errors

Coverage: 43.42%

Update test-cases

  • test_unique_name
  • test_neighborhood_unique_names
  • test_html_items

Commit

Result

masa@masa ~/ywesee/oddb.org/test/test_plugin $ ruby patinfo_invoicer.rb 
Loaded suite patinfo_invoicer
Started
..........
Finished in 0.007966 seconds.

10 tests, 25 assertions, 0 failures, 0 errors
masa@masa ~/ywesee/oddb.org/test $ ruby suite.rb
...
1265 tests, 2749 assertions, 0 failures, 0 errors

Note

  • We need to execute 'yusd' and 'meddatad' for test/suite.rb

Update test-cases patinfo

test_model/patinfo.rb

  • test_odba_store

test_state/drugs/patinfos.rb

  • test_init suspend

test_state/admin/patinfo_stats.rb

test_state/admin/patinfo_stats.rb(InvoiceItemFacade)

  • test_init
  • test_initialize

test_state/admin/patinfo_stats.rb(SequenceFacade)

  • test_add_invoice_item
  • test_iksnr_seqnr
  • test_invoice_items
  • test_newest_date
  • test_add_sequence
  • test_slate_sequences
  • test_slate_count
  • test_name
  • test_newest_date
  • test_pointer
  • test_user

test_state/admin/patinfo_stats.rb(PatinfoStatsCommon)

  • test_init

test_state/admin/patinfo_stats.rb(PatinfoStatsCompanyUser)

  • test_init

test_state/admin/patinfo_stats.rb(PatinfoStats)

  • test_init
  • test_symbol

Commit

Update test/test_state/suite.rb

Problem

  • Test-cases in the subdirectories of test/test_state are not called from test/test_state/suite.rb
  • Test_cases in test_view are not called either.

Check sub-directories

masa@masa ~/ywesee/oddb.org/test/test_state $ ls
admin  companies  drugs  global.rb  interactions  page_facade.rb  paypal  substances  suite.rb  user
masa@masa ~/ywesee/oddb.org/test/test_view $ ls
asearch.rb  companies           descriptionlist.rb  logo.rb            pager.rb         sponsorhead.rb  user
chapter.rb  descriptionform.rb  drugs               navigationfoot.rb  pointersteps.rb  suite.rb

Check test-cases in each directory

  • replace suite.rb
#!/usr/bin/env ruby
# suite.rb -- oddb -- 25.02.2011 -- mhatakeyama@ywesee.com 

require 'find'

$: << here = File.dirname(__FILE__)

Find.find(here) { |file|
  if file.match(/\.rb$/)
    require file
  end
}
view · edit · sidebar · attach · print · history
Page last modified on May 08, 2012, at 06:57 PM