view · edit · sidebar · attach · print · history

20110204-testcases-export_oddbdat-oddb_org

<< | Index | >>


  1. Update test-case for oddbdat.rb
  2. Check test coverages

Goal
  • Update test-cases export_oddbdat / 100%
Milestones
  1. Test-cases
Summary
Commits
ToDo Tomorrow
  1. Test-cases for
    • src/plugin/oddbdat_export.rb All the tests are commented out
    • src/util/exporter.rb No test-cases
Keep in Mind
  1. Next Task Also probably Dose error ch.ODDB.org Report - Error: Generikaliste - 02/2011 ch.ODDB.org Report - Error: oddb.csv - 02/2011
  2. Add my email address to SL-Update recipients
  3. Debug bsv_followers autorun
  4. oddb.org test-case 100%
  5. Some concerns about FI news job
  6. Check rdbi instead of dbi for ODBA
  7. Encoding woes (from Davatz-san)
  8. Feedback: This option indicates that the regular expression is parsed as 'UTF8' (from Davatz-san)
  9. pg on Ubuntu - see http://dev.ywesee.com/wiki.php/Gem/Pg (from Davatz-san)
  10. On Ice
  11. emerge --sync

Update test-case for oddbdat.rb

File list (should update)

  1. src/model/package.rb
  2. ext/export/src/oddbdat.rb No test-cases
  3. src/plugin/oddbdat_export.rb All the tests are commented out
  4. src/util/exporter.rb No test-cases

Check test coverage of each file

package.rb

masa@masa ~/ywesee/oddb.org/test/test_model $ rcov package.rb 
Loaded suite /usr/bin/rcov
Started
.....................................................
Finished in 0.029094 seconds.

53 tests, 130 assertions, 0 failures, 0 errors

Attach:coverage_package.rb.20110204.html

oddbdat.rb

masa@masa ~/ywesee/oddb.org/ext/export/test $ rcov test_oddbdat.rb

Attach:coverage.oddbdat.20110204.html

Confirm the current status

masa@masa ~/ywesee/oddb.org/ext/export/test $ ruby test_oddbdat.rb 
Loaded suite test_oddbdat
Started
F......F.F..F.FFFF.F.....
Finished in 0.031502 seconds.

  1) Failure:
test_structure(ODDB::OdbaExporter::TestAcLimLine) [test_oddbdat.rb:141]:
<[[1, "09"], [2, "20110203000000"], [3, 111], [4, 333], [5, 222], [6, "4"]]> expected but was
<[[1, "09"], [2, "20110204000000"], [3, 111], [4, 333], [5, 222], [6, "4"]]>.

...
25 tests, 27 assertions, 9 failures, 0 errors

Note

  • 9 Failures
  • because the date has changed
  • I have to fix them first

Update

masa@masa ~/ywesee/oddb.org/ext/export/test $ ruby test_oddbdat.rb 
Loaded suite test_oddbdat
Started
.........................
Finished in 0.016029 seconds.

25 tests, 27 assertions, 0 failures, 0 errors

Next

  • GalenicFormLine

Done tests for all *Line classes

Result

masa@masa ~/ywesee/oddb.org/ext/export/test $ ruby test_oddbdat.rb 
Loaded suite test_oddbdat
Started
..............................
Finished in 0.025688 seconds.

30 tests, 32 assertions, 0 failures, 0 errors

Next

  • Tests for *Table classes

Almost test_oddbdat.rb: 91%

Result

masa@masa ~/ywesee/oddb.org/ext/export/test $ ruby test_oddbdat.rb 
Loaded suite test_oddbdat
Started
..................................................
Finished in 0.051639 seconds.

50 tests, 58 assertions, 0 failures, 0 errors

Done coverage: 98%

Result

masa@masa ~/ywesee/oddb.org/ext/export/test $ rcov test_oddbdat.rb 
./test_oddbdat.rb:709: warning: already initialized constant ImageLink
./test_oddbdat.rb:710: warning: already initialized constant Table
Loaded suite /usr/bin/rcov
Started
.....................................................
Finished in 0.102239 seconds.

53 tests, 63 assertions, 0 failures, 0 errors

Commit

Check test coverages

Memo

  • There are 2 test groups
    1. oddb.org/test
    2. oddb.org/ext/*/test

Check coverage

oddb.org/src: 63% Attach:coverage.oddb.org.src.20110204.html

List of ext directories

  1. analysisparse 70%
  2. chapterparse 52%
  3. comarketing 100%
  4. docdata 36%
  5. export 52%
  6. fiparse 59%
  7. fipdf 7%
  8. fulltext No test directory
  9. meddata 32%
  10. readonly No test directory
  11. swissreg 64%
view · edit · sidebar · attach · print · history
Page last modified on February 04, 2011, at 05:00 PM