class Storexplore::Testing::Configuration
Attributes
explore_store_items_timeout[RW]
Timeout for a the initial test exploration of the items of a store. By default, 5 minutes
logger[RW]
Logger for custom test messages. By default, it logs to STDOUT with info level.
Public Class Methods
new()
click to toggle source
# File lib/storexplore/testing/configuration.rb, line 38 def initialize @logger = Logger.new(STDOUT) @logger.level = Logger::INFO @explore_store_items_timeout = 5*60 end
Public Instance Methods
dummy_store_generation_dir()
click to toggle source
See dummy_store_generation_dir=
. Throws if no generation dir was previously set
# File lib/storexplore/testing/configuration.rb, line 55 def dummy_store_generation_dir raise StandardError.new('You need to configure a dummy store generation directory with Storexplore::Testing.config.dummy_store_generation_dir=') if @generation_dir.nil? @generation_dir end
dummy_store_generation_dir=(generation_dir)
click to toggle source
Sets the generation directory where the dummy stores will be generated. A sub folder with name Storexplore::DummyStoreConstants#NAME will be created there to holdvall generated dummy stores, the content of this directory will be deleted when the Storexplore::DummyStore#wipeout method is called. This setup is required to use Storexplore::Testing
.
# File lib/storexplore/testing/configuration.rb, line 50 def dummy_store_generation_dir=(generation_dir) @generation_dir = generation_dir end