toptal / crystalball

Regression Test Selection library for your RSpec test suite

Home Page:https://toptal.github.io/crystalball/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is there a way to exclude generating the maps for certain specs?

noralin opened this issue · comments

I'm wondering if it's possible to exclude map generation for spec/features/?

HI @noralin. Excluding is not supported for now, however you can add it relatively easy for you project by extending Crystalball::MapGenerator and using it in your spec helper.
Something like

class MyMapGenerator < Crystalball::MapGenerator
    def refresh_for_case(example, *args)
      return if example.id =~ /\A(\.\/)?spec\/features/
      super
    end
end

should work.

Great, thank you! Would you like me to close this?

I'll close it for now, however, If this feature will get some upvotes we might add support of it out of the box in future.