is there a way to exclude generating the maps for certain specs?
noralin opened this issue · comments
Nora Lin commented
I'm wondering if it's possible to exclude map generation for spec/features/?
Pavel Shutsin commented
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.
Nora Lin commented
Great, thank you! Would you like me to close this?
Pavel Shutsin commented
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.