Forum: RSpec Partitioning Specs

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
902654bac6dff9567f018bd2ed933151?d=identicon&s=25 Nicholas Van Weerdenburg (Guest)
on 2009-04-30 16:01
(Received via mailing list)
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
146e52d49d361f85c0945487452fc6a0?d=identicon&s=25 Ben Lovell (benl)
on 2009-04-30 16:03
(Received via mailing list)
On Thu, Apr 30, 2009 at 3:00 PM, Nicholas Van Weerdenburg <
vanweerd@gmail.com> wrote:

> Nick
>

Take a look at tags:

http://wiki.github.com/aslakhellesoy/cucumber/tags

Regards,
Ben
902654bac6dff9567f018bd2ed933151?d=identicon&s=25 Nicholas Van Weerdenburg (Guest)
on 2009-04-30 16:42
(Received via mailing list)
I saw that a couple of days ago- very nice. Will that be added to RSpec?
Also, I suppose I'd have to add tags to the framework myself unless they
included it.

Thanks,
Nick
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2009-04-30 16:54
(Received via mailing list)
On Thu, Apr 30, 2009 at 9:33 AM, Nicholas Van Weerdenburg
<vanweerd@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.
146e52d49d361f85c0945487452fc6a0?d=identicon&s=25 Ben Lovell (benl)
on 2009-04-30 16:56
(Received via mailing list)
On Thu, Apr 30, 2009 at 3:33 PM, Nicholas Van Weerdenburg <
vanweerd@gmail.com> wrote:

>>
>>> I've actually switched to authlogic because of this, but was curious.
>> Ben
>>
>
Oops, I have my labels mixed up in Gmail. My apologies I thought I was
responding to a cucumber related question.

Ignore me!
902654bac6dff9567f018bd2ed933151?d=identicon&s=25 Nicholas Van Weerdenburg (Guest)
on 2009-05-01 06:20
(Received via mailing list)
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?

Thanks,
Nick
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2009-05-01 06:30
(Received via mailing list)
On Thu, Apr 30, 2009 at 10:09 AM, Nicholas Van Weerdenburg
<vanweerd@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.
This topic is locked and can not be replied to.