Hi there,
I had the same problem.
To fix it I import:
require 'test/unit/testsuite'
require 'test/unit/testsuite'
require 'test/unit/ui/reporter'
require 'fileutils'
require 'test/unit/collector/objectspace'
.....
In my setup file ( I have a setup file defined which is called by all
test suit files I additionally require the following:
require 'watir'
require 'test/unit'
require 'test/unit/ui/reporter'
require 'test/unit/ui/console/testrunner'
require 'stringio'
require 'fileutils'
require 'test/unit/assertions'
require 'watir/testUnitAddons'
and this seems to have fixed the error.
Hope it helps.
Ulrike
On 08.06.2006 at 17:22, you wrote:
>
> Hi,
>
> Thanks for getting back to me.
>
> This is where I am with comments
>
> #require 'test/unit' #I was under the impression that this would
> automatically import the two requires below
> require 'test/unit/ui/reporter'
> require 'test/unit/ui/console/testrunner'
> require 'tc_1'
> require 'tc_2'
>
> class TS_MyTests
> suite = Test::Unit::TestSuite.new
>
> suite << TC_1.suite
> suite << TC_2.suite
>
> #Dir.mkdir('build/report') #says file exists
> require 'fileutils'
> FileUtils.mkdir_p 'build/report'
>
> #I tried this:
> #Reporter.new.run(suite, 'build/report')
> #think it's trying to run the below method from this class
>
> Test::Unit::UI::Reporter.run(suite, 'build/report')
> end
>
>
> The problem I have is with this line:
>
> Test::Unit::UI::Reporter.run(suite, 'build/report')
>
> I am told it is an uninitialized constant
>
> Test::Unit::UI::Reporter::StringIO (NameError)
>
> Thanks
>
> Aidy
>
>
>
>
---------------------------------------------------------------------------------------------------------------
> This message and any attachment are confidential and may be privileged
or otherwise protected from disclosure.
> If you are not the intended recipient, please telephone or email the
sender and delete this message and any attachment from your system.
> If you are not the intended recipient you must not copy this message
or attachment or disclose the contents to any other person.
>
---------------------------------------------------------------------------------------------------------------
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general