ruby - Run/exclude specs where tag is present -


i know can run specs given some_tag value --tag some_tag:value or tag added, doesn't have value (defaults true) --tag some_tag. know can exclude specs above syntax , ~.

how run specs tag present/missing?

for example: if have specs marked slow: :external_service, slow: :manual_confirmation or slow: :some_other_reason (these made names), want like:

rspec --tag ~slow 

and run specs not slow.

the above doesn't work since filters out specs slow == true instead of !slow.nil?

  • is there way achieve or without configuration?
  • what idiomatic way such thing? guess add 2 tags, 1 boolean , 1 containing value (for example :slow, pending_on: :external_service)

this should help. call

rspec --tag ~slow:external_service 

and won't run tests tagged slow: :external_service


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -