Generating raport

Discussion in 'Ruby' started by Luke, Sep 13, 2006.

  1. Luke

    Luke Guest

    I practice at ruby and I've done some example test case,now I would
    like to
    create test suite and generate report
    can someone look at this code and explain me what's wrong? I still get
    message :

    C:/Test/ruby/lib/ruby/site_ruby/1.8/test/unit/ui/reporter.rb:63:in
    `run':
    uninitialized constant Test::Unit::UI::Reporter::StringIO (NameError)
    from
    C:/Testy/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
    `gem_original_require'
    from
    C:/Testy/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
    `require'
    from
    C:/RadRails/plugins/org.rubypeople.rdt.testunit_0.8.0.604272100PRD/ruby/RemoteTestRunner.rb:260
    thnx4help

    require 'watir'
    include Watir

    require 'test/unit'
    require 'test/unit/ui/console/testrunner'
    require 'test/unit/ui/reporter'
    require 'fileutils'

    class AttachClass<Test::Unit::TestCase
    def test_example
    #some code
    end
    end

    begin
    Test::Unit::UI::Console::TestRunner.new(AttachClass.suite).start
    suite = Test::Unit::TestSuite.new
    suite << AttachClass.suite
    FileUtils.mkdir_p 'build/report'
    Test::Unit::UI::Reporter.run(suite, 'build/report',:html)
    end
     
    Luke, Sep 13, 2006
    #1
    1. Advertising

  2. Luke

    Luke Guest

    I answer myself

    require 'stringio' is the statement fthe code needed
     
    Luke, Sep 14, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Valentin Tihomirov
    Replies:
    3
    Views:
    562
    Jonathan Bromley
    Oct 28, 2003
  2. New to Power Analysis

    Any idea about generating SAIF files ?

    New to Power Analysis, Oct 20, 2004, in forum: VHDL
    Replies:
    3
    Views:
    968
    Jon Beniston
    Oct 22, 2004
  3. Replies:
    3
    Views:
    2,659
  4. fir
    Replies:
    141
    Views:
    1,683
    Jens Gustedt
    Oct 5, 2012
  5. Kasper Jepsen

    HID Feature Raport, Linux

    Kasper Jepsen, Sep 17, 2013, in forum: Python
    Replies:
    2
    Views:
    149
    Kasper Jepsen
    Sep 18, 2013
Loading...

Share This Page