[rspec-users] Partitioning Specs

David Chelimsky dchelimsky at gmail.com
Fri May 1 00:29:35 EDT 2009


On Thu, Apr 30, 2009 at 10:09 AM, Nicholas Van Weerdenburg
<vanweerd at gmail.com> wrote:
> Sounds good.
> So I could start tagging now, and be forward compatible.
> Is there or will there be the equivalent of cucumber.yml for rspec?

There isn't now. Another thing on the someday list.

> Thanks,
> Nick
> On Thu, Apr 30, 2009 at 10:53 AM, David Chelimsky <dchelimsky at gmail.com>
> wrote:
>>
>> On Thu, Apr 30, 2009 at 9:33 AM, Nicholas Van Weerdenburg
>> <vanweerd at gmail.com> wrote:
>> > I saw that a couple of days ago- very nice. Will that be added to RSpec?
>>
>> Sooner or later, yes, but it will be managed through the hash passed
>> to the declarations:
>>
>> describe "something", :tags => [:a,:b] do
>>  it "does something", :tags > [:c] do
>>
>> etc
>>
>> You can already access that options hash in custom formatters, so you
>> can use this to control reporting. Next step is to use it to control
>> what actually gets run. But this won't be right away.
>>
>> > Also, I suppose I'd have to add tags to the framework myself unless they
>> > included it.
>> > Thanks,
>> > Nick
>> >
>> > On Thu, Apr 30, 2009 at 10:02 AM, Ben Lovell <benjamin.lovell at gmail.com>
>> > wrote:
>> >>
>> >>
>> >> On Thu, Apr 30, 2009 at 3:00 PM, Nicholas Van Weerdenburg
>> >> <vanweerd at gmail.com> wrote:
>> >>>
>> >>> Hi,
>> >>> I installed Restful Authentication and it placed a lot of specs and
>> >>> features in cucumber and rspec directories.
>> >>> Is there a way frameworks can partition there tests so that "rake
>> >>> spec"
>> >>> doesn't run all their tests?
>> >>> I've actually switched to authlogic because of this, but was curious.
>> >>> Thanks,
>> >>> Nick
>> >>
>> >> Take a look at tags:
>> >>
>> >> http://wiki.github.com/aslakhellesoy/cucumber/tags
>> >>
>> >> Regards,
>> >> Ben
>> >>
>> >>
>> >> _______________________________________________
>> >> rspec-users mailing list
>> >> rspec-users at rubyforge.org
>> >> http://rubyforge.org/mailman/listinfo/rspec-users
>> >
>> >
>> > _______________________________________________
>> > rspec-users mailing list
>> > rspec-users at rubyforge.org
>> > http://rubyforge.org/mailman/listinfo/rspec-users
>> >
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list