autotest

Autotest with Rspec2 in Rails 3 Can't Find Binaries

家住魔仙堡 提交于 2019-12-04 18:54:29
I'm trying to get autotest back up and running after moving my project to rails 3. After upgrading to rspec 2.0.0.beta.22, I can't seem to run autotest. I get the following: bundler: command not found: c:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.0.beta.22/bin/rspec even though the binary does in fact exist in that location. Here is my Gemfile contents: group :development do gem 'webrat' gem 'rspec-rails', '>=2.0.0.beta.22' gem 'factory_girl_rails', '1.0' gem 'autotest' end group :test do gem 'webrat' gem 'rspec-rails', '>=2.0.0.beta.22' gem 'factory_girl_rails', '1.0' gem 'autotest' end

How can I have autospec/test not run the full test suite after everything goes green?

混江龙づ霸主 提交于 2019-12-04 16:03:26
问题 Same question as waloeiii in twitter: How can I have autospec/test not run the full test suite after everything goes green? The next test I write will be red! I'd rather run the full test suite manually. By the way, I tried adding a failing spec: it "should flunk" do flunk end but autospec seems to ignore it when it feels like it. 回答1: Bit late but I was looking for this as well so thought I'd post my solution: Add the following to ~/.autotest: class Autotest def rerun_all_tests end end 回答2:

Is there an implementation of something like autotest-fsevent for windows?

☆樱花仙子☆ 提交于 2019-12-04 06:00:58
Basically it's an extension for autotest that listens for notification from OS and allows autotest not to scan for file changes permanently while testing only necessary changes. It saves CPU and disk use. Windows provides an API for File Change Notification called FindFirstChangeNotification http://msdn.microsoft.com/en-us/library/aa365261(VS.85).aspx It turns out that somebody already made a small ruby-bridge for this you might use for a starting point: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/36807 There is rb-fchange for Guard . I tried several and in Vista wdm worked

How can I have autospec/test not run the full test suite after everything goes green?

时光毁灭记忆、已成空白 提交于 2019-12-03 09:15:32
Same question as waloeiii in twitter : How can I have autospec/test not run the full test suite after everything goes green? The next test I write will be red! I'd rather run the full test suite manually. By the way, I tried adding a failing spec: it "should flunk" do flunk end but autospec seems to ignore it when it feels like it. Bit late but I was looking for this as well so thought I'd post my solution: Add the following to ~/.autotest: class Autotest def rerun_all_tests end end Are you sure you are not confused about the intended behaviour of autotest's heuristics? My understanding is

ZenTest autotest not running tests

社会主义新天地 提交于 2019-11-30 15:49:50
I've had problems with autotest before which I resolved by downgrading from ZenTest 4.1.4 to 4.1.3. $ ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] $ rails -v Rails 2.3.4 Currently I'm finding that on my Mac OS 10.6.1 Snow Leopard system, when I run $ autotest in my project no tests are run and I get this output... $ autotest /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit test/test_helper.rb].each { |f| require f }" | unit_diff -u Loaded suite -e Started Finished in 0.000225 seconds. 0 tests, 0 assertions, 0

Why is Rspec saying “Failure/Error: Unable to find matching line from backtrace”?

烈酒焚心 提交于 2019-11-27 12:39:35
I'm following the rails tutorial here: http://railstutorial.org/chapters/filling-in-the-layout#top When I run "rspec spec/", I get a bunch of errors that look like this: 1) LayoutLinks should have a Home page at '/' Failure/Error: Unable to find matching line from backtrace stack level too deep # C:/Ruby19/lib/ruby/1.9.1/forwardable.rb:185 2) LayoutLinks should have a Contact page at '/contact' Failure/Error: Unable to find matching line from backtrace stack level too deep # C:/Ruby19/lib/ruby/1.9.1/forwardable.rb:185 But when I go in my web browser to localhost:3000/ and localhost:3000

Why is Rspec saying “Failure/Error: Unable to find matching line from backtrace”?

蓝咒 提交于 2019-11-26 18:12:55
问题 I'm following the rails tutorial here: http://railstutorial.org/chapters/filling-in-the-layout#top When I run "rspec spec/", I get a bunch of errors that look like this: 1) LayoutLinks should have a Home page at '/' Failure/Error: Unable to find matching line from backtrace stack level too deep # C:/Ruby19/lib/ruby/1.9.1/forwardable.rb:185 2) LayoutLinks should have a Contact page at '/contact' Failure/Error: Unable to find matching line from backtrace stack level too deep # C:/Ruby19/lib