Autotest problem?

I’m hoping someone on this list will be able to help. I just updated
zentest, rspec plugin and rspec_on_rails plugin, and I get the following
exception when I run autotest. I realize that the -O is causing the
problem,
but I’m not sure how to get it not to pass it. Also, it seems strange
that
it is going through the Test::Unit runner, unless that is because of the
recent work to get rspec compatible with Test::Unit?

Exception below

c:\ruby\bin\ruby -rrubygems -e “require ‘redgreen’” -S script/spec -O
spec/spec.opts spec/controllers/coupon_controlle
r_spec.rb spec/models/coupon_spec.rb spec/helpers/coupon_helper_spec.rb
spec/views/coupon/index.html.erb_spec.rb
invalid option: -O
Test::Unit automatic runner.
Usage: -e [options] [-- untouched arguments]

-r, --runner=RUNNER              Use the given RUNNER.
                                 (c[onsole], f[ox], g[tk], g[tk]2, 

t[k])
-b, --basedir=DIR Base directory of test suites.
-w, --workdir=DIR Working directory to run tests.
-a, --add=TORUN Add TORUN to the list of things to
run;
can be a file or a directory.
-p, --pattern=PATTERN Match files to collect against
PATTERN.
-x, --exclude=PATTERN Ignore files to collect against
PATTERN.
-n, --name=NAME Runs tests matching NAME.
(patterns may be used).
-t, --testcase=TESTCASE Runs tests in TestCases matching
TESTCASE.
(patterns may be used).
-I, --load-path=DIR[;DIR…] Appends directory list to
$LOAD_PATH.
-v, --verbose=[LEVEL] Set the output level (default is
verbose).
(s[ilent], p[rogress], n[ormal],
v[erbose])
– Stop processing options so that the
remaining options will be passed to
the
test.
-h, --help Display this help.

Deprecated options:
–console Console runner (use --runner).
–gtk GTK runner (use --runner).
–fox Fox runner (use --runner).

On Jan 19, 2008 11:41 AM, Corey H. [email protected] wrote:

I’m hoping someone on this list will be able to help. I just updated
zentest, rspec plugin and rspec_on_rails plugin

What versions? Please include this information when asking questions
like this.

and I get the following
exception when I run autotest. I realize that the -O is causing the problem,
but I’m not sure how to get it not to pass it. Also, it seems strange that
it is going through the Test::Unit runner, unless that is because of the
recent work to get rspec compatible with Test::Unit?

rspec_on_rails has always gone through test/unit, but this seems a bit
odd. There were significant changes to ZenTest-3.8.0 and RSpec-1.1.2
in the way they interact and load files. Any chance that you have a
.autotest file set up? If so, what’s in it?

sorry, keep forgetting about the versions. Here’s the gem list

ZenTest (3.8.0, 3.7.2, 3.7.1, 3.6.1)
redgreen (1.2.2)
ruby-snarl (0.0.8)

Here’s the rspec plugin
RSpec-1.1.2 (build 20080114022430) - BDD for Ruby

I’m not totally sure how to get the version for the rspec_on_rails
plugin,
but I just did an update this morning.

Here’s my .autotest

require ‘redgreen/autotest’
require ‘Win32/Console/ANSI’
require ‘autotest/snarl’

$VERBOSE=false

-Corey

Well, here’s something crazy. I took them out, put them back in and it
works. Of course, the redgreen coloring isn’t working, but autotest
seems to
be. Strange.

Oh well, chalk it up to craziness on my machine (and probably in my head
a
bit)

Thanks, David.
-Corey

On Jan 19, 2008 11:54 AM, Corey H. [email protected] wrote:

but I just did an update this morning.

Here’s my .autotest

require ‘redgreen/autotest’
require ‘Win32/Console/ANSI’
require ‘autotest/snarl’

I’m going to guess it’s related to one of these libraries. I’m not in
a win32 environment so I’m not going to be able to help you debug that

  • but why don’t you try killing these for a moment and see if
    everything works fine.