<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>just_add_watir &#124; Advanced recipes for Watir &#187; Test::Unit</title>
	<atom:link href="http://justaddwatir.com/tag/testunit/feed/" rel="self" type="application/rss+xml" />
	<link>http://justaddwatir.com</link>
	<description>Advanced recipes for Watir</description>
	<lastBuildDate>Wed, 21 Oct 2009 02:44:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Q. How do I use ci_reporter in my Test::Unit scripts?</title>
		<link>http://justaddwatir.com/2008/q-how-do-i-use-ci_reporter-in-my-testunit-scripts/</link>
		<comments>http://justaddwatir.com/2008/q-how-do-i-use-ci_reporter-in-my-testunit-scripts/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 10:28:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[watir]]></category>
		<category><![CDATA[ci_reporter]]></category>
		<category><![CDATA[Test::Unit]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=49</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>A. Use a ci_reporter gem ...</strong><br />
To install the ci_reporter gem on windows:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">gem install ci_reporter</pre></div></div>

<p>If you're using Test::Unit, ensure the ci/reporter/rake/test_unit_loader.rb file is loaded <strong>before</strong> the test is run. If you're using RSpec, you‘ll need to pass the following arguments to the spec command:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"> <span style="color:#006600; font-weight:bold;">--</span><span style="color:#CC0066; font-weight:bold;">require</span> GEM_PATH<span style="color:#006600; font-weight:bold;">/</span>lib<span style="color:#006600; font-weight:bold;">/</span>ci<span style="color:#006600; font-weight:bold;">/</span>reporter<span style="color:#006600; font-weight:bold;">/</span>rake<span style="color:#006600; font-weight:bold;">/</span>rspec_loader
 <span style="color:#006600; font-weight:bold;">--</span><span style="color:#CC0066; font-weight:bold;">format</span> <span style="color:#6666ff; font-weight:bold;">CI::Reporter::RSpec</span></pre></div></div>

<p>You may also want to set the output directory as demonstrated by setting the CI_REPORTS environment variable.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'test/unit'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'ci/reporter/rake/test_unit_loader.rb'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'watir'</span>
ENV<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">&quot;CI_REPORTS&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#996600;">'C:/temp/'</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://justaddwatir.com/2008/q-how-do-i-use-ci_reporter-in-my-testunit-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Q. How do I pass command line arguments to Test::Unit?</title>
		<link>http://justaddwatir.com/2008/q-how-do-i-pass-command-line-arguments-to-testunit/</link>
		<comments>http://justaddwatir.com/2008/q-how-do-i-pass-command-line-arguments-to-testunit/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 09:45:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[watir]]></category>
		<category><![CDATA[Test::Unit]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=48</guid>
		<description><![CDATA[A. Use the -- argument to stop processing Test::Unit specific arguments ...
Module Test::Unit has its own command line arguments as specified by the following:

~/just_add_watir $&#62;ruby test_suite.rb --help
Test::Unit automatic runner.
Usage: test/unit/graph_test.rb [options] [-- untouched arguments]
&#160;
    -r, --runner=RUNNER              Use the given [...]]]></description>
			<content:encoded><![CDATA[<p><strong>A. Use the -- argument to stop processing Test::Unit specific arguments ...</strong><br />
Module Test::Unit has its own command line arguments as specified by the following:</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">~/just_add_watir $&gt;ruby test_suite.rb --help
Test::Unit automatic runner.
Usage: test/unit/graph_test.rb [options] [-- untouched arguments]
&nbsp;
    -r, --runner=RUNNER              Use the given RUNNER.
                                     (c[onsole], f[ox], g[tk], g[tk]2, t[k])
    -n, --name=NAME                  Runs tests matching NAME.
                                     (patterns may be used).
    -t, --testcase=TESTCASE          Runs tests in TestCases matching TESTCASE.
                                     (patterns may be used).
    -v, --verbose=[LEVEL]            Set the output level (default is verbose).
                                     (s[ilent], p[rogress], n[ormal], v[erbose])
     --                           Stop processing options so that the
                                     remaining options will be passed to the
                                     test.
    -h, --help                       Display this help.
&nbsp;
Deprecated options:
        --console                    Console runner (use --runner).
        --gtk                        GTK runner (use --runner).
        --fox                        Fox runner (use --runner).</pre></div></div>

<p>Example watir:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">def</span> test_0021
  <span style="color:#008000; font-style:italic;"># need to call test unit with -- argument</span>
  <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;argument 1 is: &quot;</span>,ARGV<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://justaddwatir.com/2008/q-how-do-i-pass-command-line-arguments-to-testunit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
