gatling-rake 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +15 -0
  2. data/lib/GatlingRake.rb +38 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YjIzNTBjMmMwYmRhODY3MzcxYzI1ODc0YTUwZTQ1MzRkNDNhNzkzZg==
5
+ data.tar.gz: !binary |-
6
+ NzBkYmY3MjU5ZjFiOThiMzM2ZTI0NmI2NzE3ZjRhNTM3MjU2YTBlMQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MjBjYjcwMmNlNGY3N2JkYTAyNDcyZWU1ZDE4ODJmZDdmMDJkYzk1ZmQxNmFl
10
+ ODYzZjlkMTI4MGE0OTQwNGI5MDQxMDQzYTY0YjZlMzlkMmI3ZWUxM2U4ZTFk
11
+ Njg0MzNhNDAyNDc0NmJhMGYyYjUzYTg4NTM3OGFhZmIzZDcwYjk=
12
+ data.tar.gz: !binary |-
13
+ YjE4NzhmOWE2Y2Q0YjE1NmU4ZjIyNjE0MjlmMzY2MTNhYzI0MzVkZmM4NWM4
14
+ OTNiZGY1MzQ0MGI2NzFhNTFkNjUxMjc3YTA4MDFlZGQxOWI3OTJjNDZkZjRm
15
+ NDIxZjI4ZGViN2NjMWNkM2QwZTY4MzA3NGEyMGU0ZjA3MmIwNGI=
@@ -0,0 +1,38 @@
1
+ require_relative './src/Gatling'
2
+ require_relative './src/Shell'
3
+ include Rake::DSL
4
+
5
+ def gatling(*args, &block)
6
+ gatling_wrapper = GatlingWrapper.new(&block)
7
+ task = Proc.new { gatling_wrapper.run }
8
+ Rake::Task.define_task(*args, &task)
9
+ end
10
+
11
+ class GatlingWrapper
12
+ include RakeGatling
13
+
14
+ def initialize(&block)
15
+ @block = block;
16
+ @shell = Shell.new
17
+ end
18
+
19
+ def run()
20
+ configuration = GatlingConfiguration.new
21
+ @block.call(configuration)
22
+ Gatling.new(@shell).start(
23
+ results_directory: configuration.results_directory,
24
+ gatling_file_location: configuration.gatling_file_location,
25
+ load_test_root: configuration.load_test_root,
26
+ simulation: configuration.simulation,
27
+ simulation_description: configuration.simulation_description
28
+ )
29
+ end
30
+ end
31
+
32
+ class GatlingConfiguration
33
+ attr_accessor :results_directory,
34
+ :gatling_file_location,
35
+ :load_test_root,
36
+ :simulation,
37
+ :simulation_description
38
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gatling-rake
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - iainjmitchell
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-14 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email: iainjmitchell@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/GatlingRake.rb
20
+ homepage: https://github.com/code-computerlove/gatling-rake
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.2.2
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Rake task for running gatling load tests
44
+ test_files: []