is a Ruby Unit testing utility.
Questions tagged [zentest]
41 questions
11
votes
7 answers
"autotest/rails [...] doesn't [...] exist. Aborting"
I'm finding that autotest has stopped working...
$ autotest
loading autotest/rails
Autotest style autotest/rails doesn't seem to exist. Aborting.
According to this blog post, the common reason for this error is that people don't have the…

Ethan
- 57,819
- 63
- 187
- 237
10
votes
3 answers
Can't install ZenTest 4.8.4
When I try to install ZenTest:
gem install ZenTest
I get the following error:
Invalid gemspec in
[C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/specifications/ZenTest-4.8.4.gemspec]:
Illformed requirement ["< 2.1, >= 1.8"]
I tried cleaning…

Manuel
- 10,869
- 14
- 55
- 86
8
votes
3 answers
autotest problem
I just installed Zentest 4.4.6 which includes autotest 4.4.6 and when I run autotest I get the following error:
gems/ZenTest-4.6.0/lib/autotest.rb:226:in `autodiscover': undefined method `any?' for Gem::Specification:Class (NoMethodError)
huh? it's…

Michael K Madison
- 2,242
- 3
- 21
- 35
7
votes
4 answers
autotest shows blank
I installed the autotest gem and intend to use it with rspec. The problem is, when I run autotest under my rails app, all I see is :
railsapp$ autospec
loading autotest/rails_rspec
And its stuck there until I Ctrl-C out of it. Nothing changes…

udit
- 2,745
- 3
- 33
- 44
5
votes
2 answers
Zentest - How to stop automatic testing when red
I am trying to configure autotest so that when I run my test suite and I have a failing test, autotest stops testing and waits for me to make a change before testing again. With my current configuration autotest keeps testing indefinetly when it…

Chris Knadler
- 2,819
- 2
- 26
- 32
3
votes
2 answers
Heroku, Zentest, Rails 3 - error while pushing
I am trying to push to heroku by git push heroku master.
And I have this error.
Fetching source index for http://rubygems.org/
Installing rake (0.9.2.2)
Installing ZenTest (4.6.2)…

vekozlov
- 664
- 9
- 19
3
votes
5 answers
ZenTest autotest not running tests
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…

Ethan
- 57,819
- 63
- 187
- 237
3
votes
2 answers
ZenTest errors preventing autotest from running
I've previously added ZenTest to my gemfile to get autotest to run. On this occasion I get the following error four times over:
saasbook@saasbook:~/Documents/github/LocalSupport$ bundle exec autotest
Invalid gemspec in…

Sam Joseph
- 4,584
- 4
- 31
- 47
2
votes
0 answers
Hotkeys for Ruby Autotest
It would be nice to have some more control over autotest besides Ctrl+C, which reruns all specs.
When using autotest within my Rails 3 project I often find myself waiting for some specs to finish, as autotest is always rerunning all specs in any…

Sascha Konietzke
- 1,142
- 9
- 14
2
votes
2 answers
How can I get autotest to keep running my specs after failures without stopping?
This seems like a very bizarre problem and believe me I've done a lot of searching before posing the question here. I am using the latest version of Rails 3 and Rspec 2 with Ruby 1.9.2, and I can't get autotest to run my specs properly when they…

subelsky
- 405
- 6
- 12
2
votes
2 answers
ZenTest Error in Rails
I am following the tutorial on railstutoiral.org and encounter the following error: "ZenTest is not part of the bundle. Add it to Gemfile. (Gem::LoadError)." I have ZenTest (4.4.2) installed according to gemlist so what's wrong? Thanks!

jsttn
- 1,495
- 3
- 16
- 21
2
votes
1 answer
Why does autotest sometimes re-run all specs immediately after a failure?
Sometimes after autotest runs specs and encounters an failure, it will immediately re-run all the specs in the project, which (a) I have no need for and (b) clears the terminal so I can't read the results of the failed spec.
Why is this happening?

John Bachir
- 22,495
- 29
- 154
- 227
2
votes
3 answers
"_" parameter of Ruby block
I met this when I read ZenTest source code:
Here is the definition of add_mapping method:
def add_mapping(regexp, &proc)
@test_mappings << [regexp, proc]
end
In the Autottest.initailize(), add_method get called to add mapping for…

eric2323223
- 3,518
- 8
- 40
- 55
2
votes
1 answer
Autotest: "Could not run tests". But nothing in the log
Autotest broke with rspec-rails 2.2.1 update. Now I can't get it working again.. .even after rolling back to rspec-rais 2.2.0.
Only info I'm able to find is a Growl popup saying "App: Could not run tests". Nothing is being written to…

Meltemi
- 37,979
- 50
- 195
- 293
2
votes
2 answers
Error running autotest on Windows 7 with Rails 3, Ruby 1.9.2
Installing and running Rails 3 and Ruby 1.9.2 on Windows 7 went rather smooth. It's only now that I want to run autotest that I'm running into problems. The error looks frustratingly simple, but I can't figure out how to solve it.
I have the…

Pascal Lindelauf
- 4,782
- 4
- 40
- 55