[rspec-users] How can I find out which specs are being run programmatically?

Andy Lindeman andy at andylindeman.com
Tue Jul 2 20:56:02 UTC 2013

On 2013-07-02 11:17 , Daniel Doubrovkine wrote:
> I have a step that precompiles assets before specs are run. I don't need
> assets for spec groups other than views and integration. Is there a way
> to programmatically examine the list of files or specs (groups?) being
> run within a Spork.each_run or an RSpec before(:all) block?
> Thx
> dB.

Can you get what you need from `RSpec.configuration.files_to_run`?

I may not be understanding 100% exactly what data will help you solve 
the problem.

More information about the rspec-users mailing list