Wow!! That is also very, very helpful.&nbsp; I was able to get rake to work as described in an earlier posting, but not without several hours of tinkering and reading the RSpec and Rake documentation.&nbsp; Your solution is certainly much more direct. Thanks.<br>
<br><div class="gmail_quote">On Sat, Jul 12, 2008 at 5:34 PM, Jim Morris &lt;<a href="mailto:ml@e4net.com">ml@e4net.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Another way to do it instead of the Rake method is what I do...<br>
<br>
I create a suite.rb in the spec folder with this...<br>
<br>
# suite.rb - run all my tests in this folder and below<br>
if __FILE__ == $0<br>
 &nbsp;dir = File.dirname(__FILE__)<br>
 &nbsp;tests= Dir[&quot;#{dir}/**/test_*.rb&quot;] # anything named test_*.rb<br>
 &nbsp;tests.concat Dir[&quot;#{dir}/**/*_spec.rb&quot;] # anything named *_spec.rb<br>
<br>
 &nbsp;# add additional tests that don;t follow conventional naming schemes<br>
 &nbsp;%w(anotherfile, onemorefile).each do |f|<br>
 &nbsp; &nbsp;tests &lt;&lt; File.join(dir, f) + &quot;.rb&quot;<br>
 &nbsp;end<br>
<br>
 &nbsp;puts &quot;Testing: #{tests.join(&#39;, &#39;)}&quot;<br>
<br>
 &nbsp;tests.each do |file|<br>
 &nbsp; &nbsp;load file, true<br>
 &nbsp;end<br>
end<br>
<br>
<br>
then you can run all your tests via...<br>
<br>
&gt; ruby suite.rb<br>
<br>
You could also use require instead of load, but I use nasty globals in my tests and I believe the load doesn&#39;t carry over globals.<br>
<br>
YMMV<br>
<br>
<br>
Robert Stagner wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Actually, I&#39;m a member of the QA team (limited development experience). &nbsp;So, we are attempting to use RSpec without rails. &nbsp;What is Rake? &nbsp;Near the end of your response, you list a way of running multiple spec files by creating a spec task. Since, I&#39;m not a developer, could you please provide me with a clear example on how to do this? Or, if there is an alternative method on doing this, please let me know. Thanks again.<br>

<br>
My current setup is:<br>
<br>
1 spec file that relies on accessing a module of classes to perform Watir web app testing. &nbsp;I&#39;ve included a sample of the code below<br>
<br>
describe LoginWelcomeScreen do<br>
 &nbsp;describe &quot;using IE Explorer&quot; do<br>
 &nbsp; &nbsp;before(:each) do<br>
 &nbsp; &nbsp; &nbsp;@login = LoginWelcomeScreen.new(IEWebBrowser.instance)  &nbsp; &nbsp;end<br>
 &nbsp;  &nbsp; &nbsp;it &quot;should support a username text field&quot; do<br>
 &nbsp; &nbsp; &nbsp;@login.test_username_field.should be_an_instance_of(Watir::TextField)<br>
 &nbsp; &nbsp;end<br>
&nbsp; &nbsp; &nbsp;it &quot;should support a password text field&quot; do<br>
 &nbsp; &nbsp; &nbsp;@login.test_password_field.should be_an_instance_of(Watir::TextField) &nbsp;  &nbsp; &nbsp;end<br>
.<br>
.<br>
.<br>
.<br>
end<br>
<br>
<br></div><div><div></div><div class="Wj3C7c">
On Thu, Jul 10, 2008 at 8:17 PM, Ben Mabey &lt;<a href="mailto:ben@benmabey.com" target="_blank">ben@benmabey.com</a> &lt;mailto:<a href="mailto:ben@benmabey.com" target="_blank">ben@benmabey.com</a>&gt;&gt; wrote:<br>
<br>
 &nbsp; &nbsp;Robert Stagner wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;I&#39;m new to RSpec. &nbsp;I&#39;ve just installed the gem and begun<br>
 &nbsp; &nbsp; &nbsp; &nbsp;experimenting with developing several scripts. From what I&#39;ve<br>
 &nbsp; &nbsp; &nbsp; &nbsp;seen thus far, it looks like it will aid our QA team in testing<br>
 &nbsp; &nbsp; &nbsp; &nbsp;many web applications. &nbsp;Is there a way to execute multiple rspec<br>
 &nbsp; &nbsp; &nbsp; &nbsp;test scripts from one central file?<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;--  &nbsp; &nbsp; &nbsp; &nbsp;Regards,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Robert<br>
<br>
<br>
 &nbsp; &nbsp;Robert,<br>
 &nbsp; &nbsp;Welcome to rspec! &nbsp;There are a number of ways you can do this. &nbsp;You can<br>
 &nbsp; &nbsp;do it with the command line:<br>
 &nbsp; &nbsp;spec spec/*_spec.rb<br>
<br>
 &nbsp; &nbsp;The way it is generally done is by using a rake task however...<br>
 &nbsp; &nbsp;Are you using rails? &nbsp;If so.. have you run &quot;./script/generate rspec&quot;?<br>
 &nbsp; &nbsp;That will install a spec task for you so you just have to type &quot;rake<br>
 &nbsp; &nbsp;spec&quot; to run all of your specs.<br>
<br>
 &nbsp; &nbsp;If you are in a normal ruby app then you can create your own spec task<br>
 &nbsp; &nbsp;by putting this in your Rakefile or tasks dir:<br>
<br>
 &nbsp; &nbsp; require &#39;rubygems&#39;<br>
 &nbsp; &nbsp; require &#39;spec&#39;<br>
 &nbsp; &nbsp; require &#39;spec/rake/spectask&#39;<br>
<br>
 &nbsp; &nbsp;desc &quot;Run the specs under spec/models&quot;<br>
 &nbsp; &nbsp;Spec::Rake::SpecTask.new do |t|<br>
 &nbsp; &nbsp; t.spec_files = FileList[&#39;spec/*_spec.rb&#39;]<br>
 &nbsp; &nbsp;end<br>
<br>
 &nbsp; &nbsp;If you provide more information on what your setup is we could help<br>
 &nbsp; &nbsp;more.<br>
<br>
 &nbsp; &nbsp;-Ben<br>
 &nbsp; &nbsp;<a href="http://benmabey.com" target="_blank">http://benmabey.com</a><br>
<br>
 &nbsp; &nbsp;_______________________________________________<br>
 &nbsp; &nbsp;rspec-users mailing list<br></div></div>
 &nbsp; &nbsp;<a href="mailto:rspec-users@rubyforge.org" target="_blank">rspec-users@rubyforge.org</a> &lt;mailto:<a href="mailto:rspec-users@rubyforge.org" target="_blank">rspec-users@rubyforge.org</a>&gt;<div class="Ih2E3d"><br>

 &nbsp; &nbsp;<a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>
<br>
<br>
<br>
<br>
-- <br>
Regards,<br>
Robert<br>
<br>
<br></div>
------------------------------------------------------------------------<div class="Ih2E3d"><br>
<br>
_______________________________________________<br>
rspec-users mailing list<br>
<a href="mailto:rspec-users@rubyforge.org" target="_blank">rspec-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>
</div></blockquote><font color="#888888">
<br>
<br>
-- <br>
Jim Morris, <a href="http://blog.wolfman.com" target="_blank">http://blog.wolfman.com</a></font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
rspec-users mailing list<br>
<a href="mailto:rspec-users@rubyforge.org" target="_blank">rspec-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Robert