Forum: Nitro Command to run a single spec?

Posted by Robert Mela (Guest)
on 2007-11-24 05:24
Attachment: rob.vcf (117 Bytes)
(Received via mailing list)
What's the command for running a single spec test file?   Is glycerin
required, or is there some test script that handles the includes
automatically?
Posted by Mark Van De Vyver (mvyver)
on 2007-11-24 06:21
(Received via mailing list)
Hi Robert,
I run single spec file from within my ide.  The requires I have in a
spec file are:

require File.join(File.dirname(__FILE__), "..", "..", "..", "..", 
"helper.rb")
require "og/adapter/dbi"

Not sure if this helps, I suspect you are asking about the rake tasks?

Mark
Posted by Arne Brasseur (Guest)
on 2007-11-24 09:11
(Received via mailing list)
Just do 'rake -T' in the top level dir and you should see all your 
options:

...
rake test:raw:raw:context:flash             # Run test raw:context:flash
of raw
rake test:raw:raw:context:request           # Run test
raw:context:request of raw
rake test:raw:raw:dispatcher                # Run test raw:dispatcher of 
raw
rake test:raw:raw:dispatcher:format         # Run test
raw:dispatcher:format of raw
...

Loading of glycerin doesn't happen automatically, I have these in a file
called 'setnitro':

export PATH=/home/plexus/work/nitro_repo/nitro/bin:$PATH
export RUBYOPT='-rubygems -I/home/plexus/work/nitro_repo/script
-rlib/glycerin -I/home/plexus/work/facets/lib/'

When I'm doing Nitro stuff I first do

. setnitro

HTH
(ab)


Mark Van De Vyver schreef:
This topic is locked and can not be replied to.