Class: GatlingWrapper
- Inherits:
-
Object
- Object
- GatlingWrapper
- Includes:
- RakeGatling
- Defined in:
- lib/GatlingRake.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ GatlingWrapper
constructor
A new instance of GatlingWrapper.
- #run ⇒ Object
Constructor Details
#initialize(&block) ⇒ GatlingWrapper
Returns a new instance of GatlingWrapper.
15 16 17 18 |
# File 'lib/GatlingRake.rb', line 15 def initialize(&block) @block = block; @shell = Shell.new end |
Instance Method Details
#run ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/GatlingRake.rb', line 20 def run() configuration = GatlingConfiguration.new @block.call(configuration) results_repository = ResultsRepository.new(configuration.results_directory) Gatling.new(@shell, results_repository).start( results_directory: configuration.results_directory, gatling_file_location: configuration.gatling_file_location, load_test_root: configuration.load_test_root, simulation: configuration.simulation, simulation_description: configuration.simulation_description ) end |