<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Continuous Testing and Testing Single Methods in Ruby on Rails</title>
	<atom:link href="http://www.misuse.org/science/2009/03/25/continuous-testing-and-testing-single-methods-in-ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.misuse.org/science/2009/03/25/continuous-testing-and-testing-single-methods-in-ruby-on-rails/</link>
	<description>It would be a good idea.</description>
	<lastBuildDate>Tue, 14 May 2013 22:25:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: rubencaro</title>
		<link>http://www.misuse.org/science/2009/03/25/continuous-testing-and-testing-single-methods-in-ruby-on-rails/comment-page-1/#comment-7643</link>
		<dc:creator>rubencaro</dc:creator>
		<pubDate>Fri, 10 Dec 2010 09:17:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.misuse.org/science/?p=232#comment-7643</guid>
		<description>I prefer your rake task (slightly modified to suit my needs) over autotest, at least until autotest becomes more stable. 

It does exactly what I want it to do, while autotest sometimes goes crazy and fires when nothing changed, or directly exits instead of stay there waiting...

You can place it on a github repo! I will place my version of this great rake task there.

Thanks.</description>
		<content:encoded><![CDATA[<p>I prefer your rake task (slightly modified to suit my needs) over autotest, at least until autotest becomes more stable. </p>
<p>It does exactly what I want it to do, while autotest sometimes goes crazy and fires when nothing changed, or directly exits instead of stay there waiting&#8230;</p>
<p>You can place it on a github repo! I will place my version of this great rake task there.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: grosser</title>
		<link>http://www.misuse.org/science/2009/03/25/continuous-testing-and-testing-single-methods-in-ruby-on-rails/comment-page-1/#comment-6024</link>
		<dc:creator>grosser</dc:creator>
		<pubDate>Fri, 27 Mar 2009 07:51:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.misuse.org/science/?p=232#comment-6024</guid>
		<description>Yes autotest runs all files, but only on the first run/after an error was fixed. I still do not like this behavior since the whole test suite takes ages. Ill either merge your monitor somehow or read through autotest, maybe it has an option that does this.</description>
		<content:encoded><![CDATA[<p>Yes autotest runs all files, but only on the first run/after an error was fixed. I still do not like this behavior since the whole test suite takes ages. Ill either merge your monitor somehow or read through autotest, maybe it has an option that does this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: science</title>
		<link>http://www.misuse.org/science/2009/03/25/continuous-testing-and-testing-single-methods-in-ruby-on-rails/comment-page-1/#comment-6020</link>
		<dc:creator>science</dc:creator>
		<pubDate>Fri, 27 Mar 2009 05:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.misuse.org/science/?p=232#comment-6020</guid>
		<description>My test monitor will only run a single test whenever it detects a change. I think that is different from autotest, which runs the entire test suite whenever any file is changed? My system just looks in the test folder for any *_test file that is updated. When it finds one, it runs just that single file..

Maybe that would be useful in your system? Feel free to poach that code if you want.</description>
		<content:encoded><![CDATA[<p>My test monitor will only run a single test whenever it detects a change. I think that is different from autotest, which runs the entire test suite whenever any file is changed? My system just looks in the test folder for any *_test file that is updated. When it finds one, it runs just that single file..</p>
<p>Maybe that would be useful in your system? Feel free to poach that code if you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: grosser</title>
		<link>http://www.misuse.org/science/2009/03/25/continuous-testing-and-testing-single-methods-in-ruby-on-rails/comment-page-1/#comment-6014</link>
		<dc:creator>grosser</dc:creator>
		<pubDate>Thu, 26 Mar 2009 18:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.misuse.org/science/?p=232#comment-6014</guid>
		<description>yep, rake eats them all, app:test:file:users_t or app:test:file f=users_t will work (app:test:file[users_t] could work too, but im not sure)

i am doing exact match with the single_test plugin, but i also like the possibility to run multiple tests with e.g. users*, maybe there is a nice syntax to do them both...

what i also would like to do is monitoring of a single file, so that only it is rerun every time, which keeps tests fast and is as comfortable as autotest, but maybe hacking autotest is the better solution for this.</description>
		<content:encoded><![CDATA[<p>yep, rake eats them all, app:test:file:users_t or app:test:file f=users_t will work (app:test:file[users_t] could work too, but im not sure)</p>
<p>i am doing exact match with the single_test plugin, but i also like the possibility to run multiple tests with e.g. users*, maybe there is a nice syntax to do them both&#8230;</p>
<p>what i also would like to do is monitoring of a single file, so that only it is rerun every time, which keeps tests fast and is as comfortable as autotest, but maybe hacking autotest is the better solution for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: science</title>
		<link>http://www.misuse.org/science/2009/03/25/continuous-testing-and-testing-single-methods-in-ruby-on-rails/comment-page-1/#comment-6013</link>
		<dc:creator>science</dc:creator>
		<pubDate>Thu, 26 Mar 2009 16:44:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.misuse.org/science/?p=232#comment-6013</guid>
		<description>Grosser: Thanks for the input. I agree the &quot;file=&quot; syntax is weird, but my experience is that rake eats my parameters unless I put an &quot;=&quot; in them. Maybe just me - input welcome.

This system does permit testing a single file in just the way you describe - if you only want to test &quot;users_test&quot; and not &quot;users_controller_test&quot; you would type:
&lt;code&gt;&lt;pre&gt;rake app:test:file file=users_t&lt;/pre&gt;&lt;/code&gt;
I think the feature where you want to test all tests related to users is kind of nice, which is accomplished by typing this:
&lt;code&gt;&lt;pre&gt;rake app:test:file file=users&lt;/pre&gt;&lt;/code&gt;
But perhaps if an exact match on the search string is found (i.e. &quot;users&quot; is typed and &quot;users_test.rb&quot; is found), then only that test should be run?</description>
		<content:encoded><![CDATA[<p>Grosser: Thanks for the input. I agree the &#8220;file=&#8221; syntax is weird, but my experience is that rake eats my parameters unless I put an &#8220;=&#8221; in them. Maybe just me &#8211; input welcome.</p>
<p>This system does permit testing a single file in just the way you describe &#8211; if you only want to test &#8220;users_test&#8221; and not &#8220;users_controller_test&#8221; you would type:<br />
<code>
<pre>rake app:test:file file=users_t</pre>
<p></code><br />
I think the feature where you want to test all tests related to users is kind of nice, which is accomplished by typing this:<br />
<code>
<pre>rake app:test:file file=users</pre>
<p></code><br />
But perhaps if an exact match on the search string is found (i.e. &#8220;users&#8221; is typed and &#8220;users_test.rb&#8221; is found), then only that test should be run?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: grosser</title>
		<link>http://www.misuse.org/science/2009/03/25/continuous-testing-and-testing-single-methods-in-ruby-on-rails/comment-page-1/#comment-6005</link>
		<dc:creator>grosser</dc:creator>
		<pubDate>Thu, 26 Mar 2009 08:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.misuse.org/science/?p=232#comment-6005</guid>
		<description>nice tasks for running single tests, the goal of my single_test plugin is a bit different, to only run one file, so e.g. rake spec:user would run user_spec.rb and nothing else

http://github.com/grosser/single_test/

but this approach has its advantages, e.g. simpler logic/all user_* tests are run which sometimes is ok since when changing user i also want to test users_controller/users_helper


id remove the file=, since it seems redundant to me

the _test/_test.rb syntax seems strange to me, why would i ever type out _test.rb when i got a library to take care of it. Id reduce it to #{pattern}*, and then remove any files that do not end in _test.rb (if a user wants user_test.rb but not users_controll... he can simply use user_t and it should only find one)

and the monitor task can be done with autotest/autospec, no need to roll your own :)</description>
		<content:encoded><![CDATA[<p>nice tasks for running single tests, the goal of my single_test plugin is a bit different, to only run one file, so e.g. rake spec:user would run user_spec.rb and nothing else</p>
<p><a href="http://github.com/grosser/single_test/" rel="nofollow">http://github.com/grosser/single_test/</a></p>
<p>but this approach has its advantages, e.g. simpler logic/all user_* tests are run which sometimes is ok since when changing user i also want to test users_controller/users_helper</p>
<p>id remove the file=, since it seems redundant to me</p>
<p>the _test/_test.rb syntax seems strange to me, why would i ever type out _test.rb when i got a library to take care of it. Id reduce it to #{pattern}*, and then remove any files that do not end in _test.rb (if a user wants user_test.rb but not users_controll&#8230; he can simply use user_t and it should only find one)</p>
<p>and the monitor task can be done with autotest/autospec, no need to roll your own :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
