view · edit · sidebar · attach · print · history

20121112-repair-plugin-testcase

<< | Index | >>


Summary

  • Repair and update plugin test.
  • Debug oddb.csv export with test case.

Commits

Index

See also


Repair plugin test

App#create, App#update test case is broken.

Failure: in mock 'app': no matching handler found for create(:!create,:!registration,08537!sequence,01!package,011..)
test_update_package__create(ODDB::SwissmedicPluginTest)

Then, Repaired these test method

  • test_update_package_create
  • test_update_package_create_replacement
$ ruby test/test_plugin/swissmedic.rb --name test_update_package__create
Finished in 0.019597717 seconds.

1 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

51.03 tests/s, 102.05 assertions/s

$ ruby test/test_plugin/swissmedic.rb --name test_update_package__create__replacement
Finished in 0.019788633 seconds.

1 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

50.53 tests/s, 101.07 assertions/s
related to
commit

swissmedic plugin test.

$ ruby test/test_plugin/swissmedic.rb
Finished in 1.054569294 seconds.

66 tests, 146 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

62.58 tests/s, 138.45 assertions/s

Debug csv export test-case

oddb.csv export needs "th_narcotic" header in CSV (without HTML escape sequence).
Then, Update narcotic header in resultlist.

commit
view · edit · sidebar · attach · print · history
Page last modified on November 13, 2012, at 05:49 AM