kametori 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -21,22 +21,17 @@ Or install it yourself as:
21
21
  The best way to use this gem is adding a profile to your
22
22
  cucumber.yml file (usually located in config in Rails projects).
23
23
  Like:
24
- benchmark: --format progress -r features/support/benchmark.rb
24
+
25
+ benchmark: --format progress -r features/support/benchmark.rb
25
26
 
26
27
  And in features/support/benchmark.rb you write:
27
28
 
28
- Kametori.scenario_limits = [{ tag: "fast_scenario", limit:1 },
29
- {tag:"slow_scenario", limit:10}]
29
+ require 'kametori/cucumber'
30
+ Kametori.raise_errors = true # Do we raise if timeout?
31
+ Kametori.average_on = 2 # how many tries per test
32
+ Kametori.scenario_limits = [{ tag: "fast_scenario", limit:1 },
33
+ {tag:"slow_scenario", limit:10}]
30
34
 
31
- Kametori.raise_errors = true
32
-
33
- Around do |scenario, block|
34
- Kametori.scenario_benchmark(scenario) do
35
- block.call
36
- end
37
- end
38
-
39
-
40
35
 
41
36
 
42
37
  ## Contributing
@@ -0,0 +1,7 @@
1
+ #do require kametori/cucumber in your support/benchmark.rb or whatever
2
+ #file to get this inserted, easy easy and magical :D
3
+ Around do |scenario, block|
4
+ Kametori.scenario_benchmark(scenario) do
5
+ block.call
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Kametori
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kametori
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-25 00:00:00.000000000 Z
12
+ date: 2012-09-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -75,6 +75,7 @@ files:
75
75
  - Rakefile
76
76
  - kametori.gemspec
77
77
  - lib/kametori.rb
78
+ - lib/kametori/cucumber.rb
78
79
  - lib/kametori/version.rb
79
80
  - spec/kametori_spec.rb
80
81
  - spec/spec_helper.rb