30Sep/08Off
Q. How do I use ci_reporter in my Test::Unit scripts?
A. Use a ci_reporter gem ...
To install the ci_reporter gem on windows:
gem install ci_reporter
If you're using Test::Unit, ensure the ci/reporter/rake/test_unit_loader.rb file is loaded before the test is run. If you're using RSpec, you‘ll need to pass the following arguments to the spec command:
--require GEM_PATH/lib/ci/reporter/rake/rspec_loader --format CI::Reporter::RSpec
You may also want to set the output directory as demonstrated by setting the CI_REPORTS environment variable.
require 'test/unit' require 'ci/reporter/rake/test_unit_loader.rb' require 'watir' ENV["CI_REPORTS"] = 'C:/temp/'