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
Lines 70 & 74 in test_suite.rb (ci_reporter 1.3.3)
We are using:
Ruby 1.8.2.15
Watir 1.5.1.1192
Hope this helps.