cucumber-nagios 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -16,13 +16,14 @@ As Bradley Taylor [put it](http://bradley.is/post/82649218/testing-dash-metrics-
16
16
  Quickstart
17
17
  ==========
18
18
 
19
- 0. `gem sources -a http://gems.github.com`
20
- 1. `gem install auxesis-cucumber-nagios`
21
- 2. `cucumber-nagios-gen project bunch-o-tests`
22
- 3. `cd bunch-o-tests`
23
- 4. `rake deps`
24
- 5. `bin/cucumber-nagios-gen feature ebay.com.au bidding`
25
- 6. `bin/cucumber-nagios features/ebay.com.au/bidding.feature`
19
+ 0. `gem install gemcutter`
20
+ 1. `gem tumble`
21
+ 2. `gem install cucumber-nagios`
22
+ 3. `cucumber-nagios-gen project bunch-o-tests`
23
+ 4. `cd bunch-o-tests`
24
+ 5. `gem bundle`
25
+ 6. `bin/cucumber-nagios-gen feature ebay.com.au bidding`
26
+ 7. `bin/cucumber-nagios features/ebay.com.au/bidding.feature`
26
27
 
27
28
 
28
29
  Setting up a project
@@ -38,26 +39,37 @@ Check the `README` within this directory for specific instructions for managing
38
39
  the project.
39
40
 
40
41
 
41
- Freezing
42
- ========
42
+ Bundling dependencies
43
+ =====================
43
44
 
44
- ** This is really manky at the moment. cucumber-nagios will be switching to
45
- wycats' bundler at the next major release! **
45
+ Bundling cucumber-nagios's dependencies allows you to drop your cucumber-nagios
46
+ project to any machine and have it run. This can be useful if you want to
47
+ develop your tests on one machine, and deploy them to another (like a production
48
+ Nagios server).
46
49
 
47
- Freezing your dependencies into your project allows you to drop your
48
- `cucumber-nagios` project to any machine and have it run. Its only requirement is
49
- Ruby and Rake.
50
+ You'll need to bundle your dependencies to use cucumber-nagios.
50
51
 
51
- To freeze your project, within your project directory run:
52
+ First you need to make sure the following dependencies are installed:
52
53
 
53
- $ rake deps
54
+ - RubyGems
55
+ - bundler gem (automatically pulled in by the cucumber-nagios gem)
54
56
 
55
- Redeploying
56
- ===========
57
+ To bundle your dependencies, within your project directory run:
57
58
 
58
- Once you've copied your project around, Just run the freezer again:
59
+ $ gem bundle
60
+
61
+
62
+ Deploying to production
63
+ =======================
64
+
65
+ Once you've copied your project around, just run the bundler again:
66
+
67
+ $ gem bundle
68
+
69
+ You'll need to have RubyGems and the bundler gem installed on the system
70
+ you're deploying too. I know, this is not optimal, but hopefully the bundler
71
+ gem will handle this better in the future.
59
72
 
60
- $ rake deps
61
73
 
62
74
  Writing features
63
75
  ================
@@ -79,8 +91,9 @@ As for writing features, you'll want to have a read of the
79
91
  your tests will look something like this:
80
92
 
81
93
  Feature: google.com.au
82
- It should be up
83
- And I should be able to search for things
94
+ To broaden their knowledge
95
+ A user should be able
96
+ To search for things
84
97
 
85
98
  Scenario: Searching for things
86
99
  Given I visit "http://www.google.com"
@@ -117,9 +130,7 @@ selectors.
117
130
  I suggest you use `bin/cucumber` directly so you can get better feedback when
118
131
  writing your tests:
119
132
 
120
- bin/cucumber --require bin/common.rb \
121
- --require features/
122
- features/smh/smh.feature
133
+ bin/cucumber --require features/ features/smh/smh.feature
123
134
 
124
135
  This will output using the default 'pretty' formatter.
125
136
 
@@ -222,3 +233,5 @@ To get up and running with bzr:
222
233
  $ bzr commit -m 'created cucumber-nagios project'
223
234
 
224
235
  `.bzrignore` and `.gitignores` are created when you generate a project.
236
+
237
+
@@ -0,0 +1,8 @@
1
+ Given /^I am benchmarking$/ do
2
+ @scenario_start_time = Time.now
3
+ end
4
+
5
+ Then /^the elapsed time should be less than (\d+) seconds$/ do |time|
6
+ (@scenario_start_time - Time.now).should > time.to_i * -1
7
+ end
8
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-nagios
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lindsay Holmwood
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-12 00:00:00 +02:00
12
+ date: 2009-10-30 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -53,6 +53,7 @@ extra_rdoc_files: []
53
53
  files:
54
54
  - bin/cucumber-nagios-gen
55
55
  - lib/generators/project/Gemfile
56
+ - lib/generators/project/features/steps/benchmark_steps.rb
56
57
  - lib/generators/project/features/steps/result_steps.rb
57
58
  - lib/generators/project/features/steps/webrat_steps.rb
58
59
  - lib/generators/project/features/support/env.rb