What’s wrong here? script/runner looks okay, but doesn’t run as
advertised. Check it out:
./script/runner --help
Usage: ./script/runner [options] (‘Some.ruby(code)’ or a filename)
-e, --environment=name Specifies the environment for the
runner to operate under (test/development/production).
Default: development
-h, --help Show this help message.
You can also use runner as a shebang line for your scripts like this:
#!/usr/bin/env /home/mark/ariel/script/runner
Product.find(:all).each { |p| p.price *= 2 ; p.save! }
./script/runner -e production ‘TourDateMailing.generate_new’
invalid option: -e
Test::Unit automatic runner.
Usage: ./script/runner [options] [-- untouched arguments]
-r, --runner=RUNNER Use the given RUNNER.
(c[onsole], f[ox], g[tk], g[tk]2,
t[k])
-n, --name=NAME Runs tests matching NAME.
(patterns may be used).
-t, --testcase=TESTCASE Runs tests in TestCases matching
TESTCASE.
(patterns may be used).
-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).
Any ideas?
Thanks.
–mark