just needed to do:
gem install builder
________________________________
From: watir-general@googlegroups.com
[mailto:watir-general@googlegroups.com] On Behalf Of Russ DeWolfe
Sent: Thursday, September 06, 2007 3:49 PM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: CI::Reporter - tutorial or examples?
When I try to run your code, I get this:
c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:301:in
`report_activate_error': Could not find RubyGem builder (>= 0.0.0)
(Gem::LoadError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:238:in `activate'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:76:in
`active_gem_with_options'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:50:in `gem'
from
c:/ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.3.4/lib/ci/reporter/test_su
ite.rb:69:in `create_builder'
from
c:/ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.3.4/lib/ci/reporter/test_su
ite.rb:85:in `to_xml'
from
c:/ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.3.4/lib/ci/reporter/report_
manager.rb:18:in `write_report'
from
c:/ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.3.4/lib/ci/reporter/report_
manager.rb:17:in `open'
from
c:/ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.3.4/lib/ci/reporter/report_
manager.rb:17:in `write_report'
... 11 levels...
from c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run'
from c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run'
from c:/ruby/lib/ruby/1.8/test/unit.rb:278
from test.rb:7
>Exit code: 0
any idea why?
Russ
________________________________
From: watir-general@googlegroups.com
[mailto:watir-general@googlegroups.com] On Behalf Of Charley Baker
Sent: Thursday, September 06, 2007 10:26 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: CI::Reporter - tutorial or examples?
I think you're overthinking it. This example works, writes out the
results in xml (standard xunit style) which can then be picked up by
Cruise Control and displayed in it's dashboard.
require 'test/unit'
require 'ci/reporter/rake/test_unit_loader.rb'
require 'watir'
class My_Test < Test::Unit::TestCase
def test_me
browser = Watir::IE.start(' http://www.google.com'
<http://www.google.com'> )
assert(browser.link(:text, 'About Google').exists?)
browser.close
end
end
This will dump the xml file to the directory where the test is run in
test/reports/TEST- My-Test.xml
-Charley
On 9/6/07, Ruel Loehr <ruello...@gmail.com> wrote:
We currently have a watir test suite which runs daily inside of
cruisecontrol. It's currently setup up to write results to an
html
page, but it is pretty cryptic and not integrated with the
cruisecontrol system.
I'd like to change this over such that reporting is a little
easier to
understand and have seen a few references to CI::Reporter. I
checked
out the page here:
http://caldersphere.rubyforge.org/ci_reporter and googled around
a
bit, haven't seen what I feel is enough info to start.
We have a java web app which is built and deployed. I then
fire up
the watir test suite. I'm trying to understand how to
integrate the
CI::Reporter into my existing watir tests but have not yet found
any
examples.
>From the documentation:
If for some reason you can't use the above technique to inject
CI::Reporter (e.g., you're not using Rake), you'll have to do
one of
these:
1. If you're using Test::Unit, ensure the ci/reporter/rake/
test_unit_loader.rb file is loaded or required at some point
before
the tests are run.
Perfect. I'm not using rake. I am using Test::Unit, and I
can
include test_unit_loader.rb. The next step is to figure out
how to
use the api. Are there some basic examples out there anywhere?
E.g. start a testsuite, run a test, record a passing entry,
record a
failing entry, write the xml......
Thanks!
Ruel Loehr