Setting up a different test environment for tagged scenarios

rspec

#1

When running tests during a build, I need some of my feature specs to be executed on a smoke server. I wanted to start with overwritting rspec

bundle exec rspec spec --tag ~smoke_specs;

so it runs every test without that tag, but I have no idea how to configure the remaining specs so they (and they only) run on a smoke server


#2

Came across this question looking for something related. Just remove the ~ and rspec will run only specs WITH the smoke_specs tag.

bundle exec rspec spec --tag smoke_specs


#3