Class: Koine::TestRunner::Adapters::Custom

Inherits:
BaseRegexp show all
Defined in:
lib/koine/test_runner/adapters/custom.rb

Instance Attribute Summary

Attributes inherited from BaseAdapter

#next_adapter

Instance Method Summary collapse

Methods inherited from BaseAdapter

#test_command

Constructor Details

#initialize(file_pattern:, command: nil, commands: {}) ⇒ Custom

Returns a new instance of Custom.



5
6
7
8
9
10
11
12
13
# File 'lib/koine/test_runner/adapters/custom.rb', line 5

def initialize(file_pattern:, command: nil, commands: {})
  super(file_pattern: file_pattern)
  @command = command
  @commands = {}.tap do |hash|
    commands.each do |key, value|
      hash[key.to_sym] = value
    end
  end
end