I got it to run, but i have a couple of questions about how to configure
the rake task.

for 3:
So i'd need to create a task for each batch of tags i'd want to use, right?

If this was my rake task:

Taza::Rake::Tasks.new(:wip) do |t|
  time = Time.now
  $time = time.strftime("%y%m%d_%H%M")
  file_hole = "artifacts/#{$time}"
  t.spec_opts = ["--require taza",
                "--format html --out #{file_hole}/index.html",
                "--format p" ,
                "--format FailingExamplesFormatter --out
#{file_hole}/failing_examples.txt",
                "--tag wip"]
end

what would the rake command be for taza?
i've tried:
rake spec:isolation:insight wip
rake wip spec:isolation:insight
rake wip

and i get wrong number of arguments errors.

I'm always going to be running from spec:isolation:site, is there a way i
can set that in the rake task?

Thanks.



On Tue, Dec 6, 2011 at 1:41 PM, Pedro Nascimento <[email protected]>wrote:

> 1. In your spec_helper you can do:
>
> RSpec.configure {|config|
> config.treat_symbols_as_metadata_keys_with_true_values = true
> }
>
> Then, on your example:
> it 'should perform a search', :performance  do
>
> To run it:
> rspec spec --tag performance *(mind the double dash)*
>
> If you don't want/need the configuration change (which you should do
> unless you have a very good reason) you can use the 'normal' way rspec does
> it:
> https://www.relishapp.com/rspec/rspec-core/v/2-7/docs/command-line/tag-option
>
> 2. Just add the tag to the describe block:
> describe "This awesome flow", :focus do
>
> 3. You can do it like this: https://github.com/rspec/rspec-core/issues/280
>
> Thanks!
> Oscar and Pedro pairing
>
> On Tue, Dec 6, 2011 at 19:08, hillary <[email protected]> wrote:
>
>> The newest version of taza has replaced taglob for running a spec by a
>> tag. I've read up on rspec tags, but i can't seem to translate it to
>> running my specs in taza.
>> So my questions are:
>>
>>    1. How do i tag an individual test?
>>    2. Is is possible to give an entire spec a tag?
>>    3. What do I need to configure to run the tests through rake?
>>
>>  --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> [email protected]
>> http://groups.google.com/group/watir-general
>> [email protected]
>>
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to