We are using RSpec in a rails project for unit testing. I would like to set up some performance tests in RSpec, but do it in a way as to not disrupt the ‘regular’ features and fixtures.
Ideally I’d be able to tag my performance specs in a certain way such that they are not run by default.
Then when I specify to run these specs explicitly it will load a different set of fixtures (it makes sense to do performance testing with a much larger and more ‘production-like’ dataset).
Is this possible? It seems like it should be.
Has anyone set up something like this? How did you go about it?
I managed to get what I was looking for via the following:
But I tend to agree with Marnen’s point that this isn’t really the best idea for performance testing.