is a Ruby Unit testing utility.
Questions tagged [zentest]
41 questions
1
vote
2 answers
Rails: using ZenTest / autospec to test specs in new directories
I am adding a directory for services classes in my rails application: app/services
I would like to add specs for these classes in the directory: spec/services
I added a spec to spec/services, but running autospec does not run the example.
Is there…

Lee
- 9,432
- 3
- 30
- 34
0
votes
1 answer
ZenTest not working with RSpec 2.7 and Rails 3.1.0
I've basically followed this RSpec guide on my simple Rails app, but when I run autotest I get
$ autotest
(Not running features. To run features in autotest, set AUTOFEATURE=true.)
loading autotest/rails_rspec2
bundle exec…

Jakub Arnold
- 85,596
- 89
- 230
- 327
0
votes
1 answer
How to add colors in autotest for rspec?
So I have these gems for dev:
gem 'autotest'
gem 'ZenTest'
gem 'autotest-growl'
In my .autotest file:
require 'active_support'
require 'active_support/core_ext'
require 'autotest/restart'
require 'redgreen/autotest'
begin
require…

user8217653
- 13
- 5
0
votes
1 answer
Source code problem of ZenTest
Here is one method that monkey patched the Dir[] method from autotest
class Dir
class << self
alias :old_index :[]
def [](*args)
$-w, old_warn = false, $-w
old_index(*args)
ensure
$-w = old_warn
end
…

eric2323223
- 3,518
- 8
- 40
- 55
0
votes
1 answer
How ZenTest works in detecting file save?
I read some source code of ZenTest but didn't find where it is implemented.
Could you give me give some clue? Thanks in advance.

eric2323223
- 3,518
- 8
- 40
- 55
0
votes
3 answers
Why isn't autotest working?
I'm trying to use autotest for Rails development. It's supposed to run my tests automatically.
Here's my setup:
$ which ruby
/usr/bin/ruby
$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
$ rails -v
Rails…

Ethan
- 57,819
- 63
- 187
- 237
0
votes
1 answer
Fastest rails test runner: spork and zentest?
I ran across a thread about slow rspec tests that made me wonder which rails test runner configuration will result in the fastest running recurring tests?
I'm aware that ZenTest / autotest-rails can be used in conjunction with spork, but is that the…

Kaleb Pederson
- 45,767
- 19
- 102
- 147
0
votes
1 answer
How do I get autotest (ZenTest) to see my namespaced stuff?
Autotest is supposed to map my tests to a class, I believe. When I have class Foo and class FooTest, autotest should see FooTest and say, "Hey, this test corresponds to the unit Foo, so I'll look for changes there and re-run tests when changes…

Blaine Lafreniere
- 3,451
- 6
- 33
- 55
0
votes
0 answers
ruby 2.1 rails 4 and ZenTest 4.9.5 - multigem error
I'm setting up a new computer and trying to bundle install a project -- I'm getting:
ZenTest's executable "multigem" conflicts with /Users/grimm/.rvm/rubies/ruby-2.1.0/bin/multigem
Overwrite the executable? [yN] n
ERROR: Error installing…

grimmwerks
- 491
- 1
- 6
- 21
0
votes
1 answer
No colors when using autospec
When I'm using autospec to test a non-Rails Ruby project, I always have trouble getting my tests to show up red or green.
When I run a regular 'spec spec/ --color' command I get normal red/green responses. I've tried putting all sorts of commands in…

kfitzpatrick
- 2,425
- 4
- 19
- 11
0
votes
1 answer
How to make rails autospec stop looping
I'm using autospec and when all tests are passing, the green messages pops up just once, but when the tests are NOT passing, it remains popping up infinite red windows in growl. Does anybody knows how to turn this off and make autospec run just…

Daniel Cukier
- 11,502
- 15
- 68
- 123