ZenTest autotest not running tests
I had a similar problem which I resolved by downgrading to 4.0.0. Unfortunately I didn't have time to investigate why this happened in the first place, but I would be interested to know.
ZenTest errors preventing autotest from running
Just fixed this by editing
/usr/local/lib/ruby/gems/1.9.1/specifications/ZenTest-4.9.0.gemspec
so that the line specifying the rubygems version is now this:
s.required_rubygems_version = Gem::Requirement.new("< 2.1") if s.respond_to? :required_rubygems_version=
now everything runs fine ...
ZenTest errors preventing autotest from running
Just fixed this by editing
/usr/local/lib/ruby/gems/1.9.1/specifications/ZenTest-4.9.0.gemspec
so that the line specifying the rubygems version is now this:
s.required_rubygems_version = Gem::Requirement.new("< 2.1") if s.respond_to? :required_rubygems_version=
now everything runs fine ...
Zentest - How to stop automatic testing when red
I had the same problem and found that my development server was writing to the log file. After I added this to my .autotest file, the problem went away:
Autotest.add_hook :initialize do |at|
at.add_exception(%r{^\./\.git})
at.add_exception(%r{^\./log})
end
Autotest: Could not run tests. But nothing in the log
autotest -s rspec2
tells autotest to use the "rspec2" style, which will make it look for spec files and run the examples therein.
This is just a workaround though. Autotest is supposed to discover the specs based on the entries in your project's ./autotest/discover.rb
. And as you found, a recent code update broke the autodiscovery. I ran into this myself and was unable to track down the source.
Spork is repeatedly re-running failing tests in autotest
Are you sure that this is related to spork? I just fixed a similar problem with autotest and an endless loop, where some component (simplecov in that case) kept updating files in the directory and autotest picked them up as being changed and therefore reran the tests.
To solve the problem, find out if spork writes to some file/directory in your tree and add this to the exception list for autotest like so:
~/ruby/project$ cat .autotest
Autotest.add_hook :initialize do |at|
at.add_exception(%r{^\./\.git})
at.add_exception(%r{^\./your_culprit})
end
Maybe the docu on github makes it more clear.
Hope this helps
Is there something like ZenTest/Autotest for Java and JUnit
Might I also suggest Infinitest, it is under active development and works with other languages besides Java. I believe it works fine with Scala, but I haven't had much luck using it with Groovy.
It is free for personal use and is being developed by Improving.
Related Topics
Ruby on Rails Country/State Select Enigma
Uploading a File to a Website with Ruby/Rails
Actioncable - Failed to Upgrade to Websocket in Production
Is It Necessary to Close Stringio in Ruby
How to Programmatically Check If a Certificate Has Been Revoked
Case Expression Different in Ruby 1.9
Could Not Find Rake-10.0.4 in Any of the Sources (Bundler::Gemnotfound)
Best Way to Document "Splatted" Parameter with Yard
Save Image with Mechanize and Nokogiri
Instance Variable, Class Variable and the Difference Between Them in Ruby
Zentest Autotest Not Running Tests
How to Call a Parent App's Helper Method from a Rails 3.1 Engine
Rails Helper - How to Get a Helper to Give Me a '<Br/>' (Or Other Markup)
Calling a Sinatra App Instance Method from Testcase
Readline Not Working in Rvm - Ubuntu 11.10
Deploy a Shell Script with Ruby Gem and Install in Bin Directory