Class: CollateralCucumber

Inherits:
Object
  • Object
show all
Defined in:
lib/collateral_cucumber.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_location = "features", test_tag = "regression") ⇒ CollateralCucumber

Returns a new instance of CollateralCucumber.



7
8
9
10
11
# File 'lib/collateral_cucumber.rb', line 7

def initialize(file_location = "features", test_tag = "regression")
  @col = Collateralizer.new
  @ffi = FFInteraction.new(test_tag)
  @file_location = file_location
end

Instance Attribute Details

#colObject

Returns the value of attribute col.



5
6
7
# File 'lib/collateral_cucumber.rb', line 5

def col
  @col
end

#ffiObject

Returns the value of attribute ffi.



5
6
7
# File 'lib/collateral_cucumber.rb', line 5

def ffi
  @ffi
end

#file_locationObject

Returns the value of attribute file_location.



5
6
7
# File 'lib/collateral_cucumber.rb', line 5

def file_location
  @file_location
end

#test_tagObject

Returns the value of attribute test_tag.



5
6
7
# File 'lib/collateral_cucumber.rb', line 5

def test_tag
  @test_tag
end

Instance Method Details

#exec(actual_mod: true) ⇒ Object



13
14
15
16
17
18
# File 'lib/collateral_cucumber.rb', line 13

def exec(actual_mod: true)
  scenarios = ffi.feature_iterator(file_location)
  splits = col.job_splitter(scenarios)
  assignment = col.job_assigner(splits)
  ffi.feature_mod_iterator(assignment, file_location, actual_mod)
end