On Wed, Sep 23, 2009 at 2:00 PM, Denis Haskin <[email protected]> wrote:
> Reverse-engineering with --format e, it turns out --example is the *whole*
> example name, e.g.
> "LineItem should allow a offer code to be associated with it"
>
> So is there any *easy* way to run just a few files?

Right now there is not, though there will be better ways in the
future. For now, the best thing to do is probably set up a rake task.
The --pattern option can take a comma separated list of patterns, so
you can just list out the files you want.

You can also set up the rake task so it gets the pattern list from a
file that lists the files you want one per line. Something like:

  Spec::Rake::SpecTask.new(:focused) do |t|
    t.spec_files = File.readlines('spec_files.txt').collect{|f| f.strip}
  end

Then you can run 'rake spec:focused' and just copy the file names you
want into spec_files.txt. That's probably the lowest overhead because
it's easy to change what you're running but then stay focused on that
set of files until you're ready to change.

HTH,
David

>
> Thx,
>
> dwh
>
> _______________________________________________
> rspec-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to