<< | Index | >>
Initial skelton (test/test_plugin/oddbdat_export.rb)
#!/usr/bin/env ruby
# TestOddbDatExport -- oddb -- 07.02.2011 -- mhatakeyama@ywesee.com
$: << File.expand_path('..', File.dirname(__FILE__))
$: << File.expand_path("../../src", File.dirname(__FILE__))
require 'stub/oddbdat_export'
require 'test/unit'
require 'flexmock'
module ODDB
module OdbaExporter
class TestOddbDatExport < Test::Unit::TestCase
include FlexMock::TestCase
def test_export
assert_equal(nil, false)
end
end
end
end
Result
masa@masa ~/ywesee/oddb.org/test/test_plugin $ ruby oddbdat_export.rb Loaded suite oddbdat_export Started F Finished in 0.000575 seconds. 1) Failure: test_export(ODDB::OdbaExporter::TestOddbDatExport) [oddbdat_export.rb:22]: <nil> expected but was <false>. 1 tests, 1 assertions, 1 failures, 0 errors
Next
Attach:oddbdat_export.rb.20110207_1.txt
Result
masa@masa ~/ywesee/oddb.org/test/test_plugin $ ruby oddbdat_export.rb Loaded suite oddbdat_export Started ... Finished in 0.004423 seconds. 3 tests, 3 assertions, 0 failures, 0 errors
Check coverage
Initial skelton (test/test_util/exporter.rb)
Result
#!/usr/bin/env ruby
# TestExporter -- oddb -- 07.02.2011 -- mhatakeyama@ywesee.com
$: << File.expand_path("../../src", File.dirname(__FILE__))
require 'test/unit'
require 'flexmock'
module ODDB
class TestExporter < Test::Unit::TestCase
def test_export_oddbdat
assert_equal(nil, false)
end
end
end
Result
masa@masa ~/ywesee/oddb.org/test/test_util $ ruby exporter.rb Loaded suite exporter Started F Finished in 0.002461 seconds. 1) Failure: test_export_oddbdat(ODDB::TestExporter) [exporter.rb:14]: <nil> expected but was <false>. 1 tests, 1 assertions, 1 failures, 0 errors
Next
Attach:export.rb.20110207_1.txt
Result
masa@masa ~/ywesee/oddb.org/test/test_util $ rcov exporter.rb
[DEPRECATED] By requiring 'spreadsheet/excel' you are loading a Compatibility
layer which provides a drop-in replacement for Spreadsheet::Excel
versions <= 0.3.5.1. This code will be removed in Spreadsheet
version 1.0.0
Loaded suite /usr/bin/rcov
Started
....
Finished in 0.007061 seconds.
4 tests, 6 assertions, 0 failures, 0 errors
Check coverage
Commit
Interim Summary
Memo
Attach:export.rb.20110207_2.txt
Result
masa@masa ~/ywesee/oddb.org/test/test_util $ ruby exporter.rb
[DEPRECATED] By requiring 'spreadsheet/excel' you are loading a Compatibility
layer which provides a drop-in replacement for Spreadsheet::Excel
versions <= 0.3.5.1. This code will be removed in Spreadsheet
version 1.0.0
Loaded suite exporter
Started
.........
Finished in 0.041789 seconds.
9 tests, 8 assertions, 0 failures, 0 errors
Attach:exporter.rb.20110207_3.txt
Result
masa@masa ~/ywesee/oddb.org/test/test_util $ ruby exporter.rb
[DEPRECATED] By requiring 'spreadsheet/excel' you are loading a Compatibility
layer which provides a drop-in replacement for Spreadsheet::Excel
versions <= 0.3.5.1. This code will be removed in Spreadsheet
version 1.0.0
Loaded suite exporter
Started
..........................................
Finished in 0.115122 seconds.
42 tests, 35 assertions, 0 failures, 0 errors
Coverage
Note