Class: CollateralCucumber
- Inherits:
-
Object
- Object
- CollateralCucumber
- Defined in:
- lib/collateral_cucumber.rb
Instance Attribute Summary collapse
-
#col ⇒ Object
Returns the value of attribute col.
-
#ffi ⇒ Object
Returns the value of attribute ffi.
-
#file_location ⇒ Object
Returns the value of attribute file_location.
-
#test_tag ⇒ Object
Returns the value of attribute test_tag.
Instance Method Summary collapse
- #exec(actual_mod: true) ⇒ Object
-
#initialize(file_location = "features", test_tag = "regression") ⇒ CollateralCucumber
constructor
A new instance of CollateralCucumber.
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
#col ⇒ Object
Returns the value of attribute col.
5 6 7 |
# File 'lib/collateral_cucumber.rb', line 5 def col @col end |
#ffi ⇒ Object
Returns the value of attribute ffi.
5 6 7 |
# File 'lib/collateral_cucumber.rb', line 5 def ffi @ffi end |
#file_location ⇒ Object
Returns the value of attribute file_location.
5 6 7 |
# File 'lib/collateral_cucumber.rb', line 5 def file_location @file_location end |
#test_tag ⇒ Object
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 |