tddium-preview 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/features/suite_command.feature +43 -0
- data/lib/tddium.rb +6 -1
- data/lib/tddium/version.rb +1 -1
- data/spec/{tddium_spec.rb → tddium_oldspec.rb} +0 -0
- metadata +157 -108
data/Gemfile.lock
CHANGED
@@ -45,3 +45,46 @@ Feature: suite command
|
|
45
45
|
Then the output from "tddium suite" should contain "Created suite..."
|
46
46
|
When the console session ends
|
47
47
|
Then the exit status should be 0
|
48
|
+
|
49
|
+
Scenario: Configure new suite with tddium.yml without matching key
|
50
|
+
Given the destination repo exists
|
51
|
+
And a git repo is initialized on branch "test/foobar"
|
52
|
+
And the user is logged in
|
53
|
+
And the user has no suites
|
54
|
+
And the user can create a suite named "beta" on branch "test/foobar"
|
55
|
+
And a file named "config/tddium.yml" with:
|
56
|
+
"""
|
57
|
+
---
|
58
|
+
:foo:
|
59
|
+
:ruby_version: ruby-1.9.2-p290-psych
|
60
|
+
"""
|
61
|
+
When I run `tddium suite` interactively
|
62
|
+
Then the output from "tddium suite" should contain "Looks like"
|
63
|
+
And I respond to "repo name" with "beta"
|
64
|
+
Then the output from "tddium suite" should contain "Detected branch test/foobar"
|
65
|
+
Then the output from "tddium suite" should not contain "Configured ruby ruby-1.9.2-p290-psych from tddium.yml"
|
66
|
+
Then the output from "tddium suite" should contain "Detected ruby"
|
67
|
+
When I choose defaults for test pattern, CI and campfire settings
|
68
|
+
Then the output from "tddium suite" should contain "Created suite..."
|
69
|
+
When the console session ends
|
70
|
+
Then the exit status should be 0
|
71
|
+
|
72
|
+
Scenario: Configure new suite with empty tddium.yml
|
73
|
+
Given the destination repo exists
|
74
|
+
And a git repo is initialized on branch "test/foobar"
|
75
|
+
And the user is logged in
|
76
|
+
And the user has no suites
|
77
|
+
And the user can create a suite named "beta" on branch "test/foobar"
|
78
|
+
And a file named "config/tddium.yml" with:
|
79
|
+
"""
|
80
|
+
"""
|
81
|
+
When I run `tddium suite` interactively
|
82
|
+
Then the output from "tddium suite" should contain "Looks like"
|
83
|
+
And I respond to "repo name" with "beta"
|
84
|
+
Then the output from "tddium suite" should contain "Detected branch test/foobar"
|
85
|
+
Then the output from "tddium suite" should not contain "Configured ruby ruby-1.9.2-p290-psych from tddium.yml"
|
86
|
+
Then the output from "tddium suite" should contain "Detected ruby"
|
87
|
+
When I choose defaults for test pattern, CI and campfire settings
|
88
|
+
Then the output from "tddium suite" should contain "Created suite..."
|
89
|
+
When the console session ends
|
90
|
+
Then the exit status should be 0
|
data/lib/tddium.rb
CHANGED
@@ -447,7 +447,12 @@ class Tddium < Thor
|
|
447
447
|
end
|
448
448
|
|
449
449
|
def tddium_config
|
450
|
-
YAML.load(File.read(Config::CONFIG_PATH))
|
450
|
+
config = YAML.load(File.read(Config::CONFIG_PATH)) rescue {}
|
451
|
+
return {} unless config.is_a?(Hash)
|
452
|
+
|
453
|
+
config = config[:tddium] || config['tddium']
|
454
|
+
config ||= {}
|
455
|
+
config
|
451
456
|
end
|
452
457
|
|
453
458
|
def tddium_file_name
|
data/lib/tddium/version.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,148 +1,186 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: tddium-preview
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 43
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 9
|
9
|
+
- 8
|
10
|
+
version: 0.9.8
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Solano Labs
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2011-10-12 00:00:00 -07:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
15
22
|
name: thor
|
16
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
25
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
22
33
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
26
36
|
name: highline
|
27
|
-
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
33
47
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
37
50
|
name: json
|
38
|
-
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
53
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
44
61
|
type: :runtime
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
48
64
|
name: tddium_client
|
49
|
-
|
65
|
+
prerelease: false
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
67
|
none: false
|
51
|
-
requirements:
|
68
|
+
requirements:
|
52
69
|
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 25
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
- 1
|
75
|
+
- 1
|
54
76
|
version: 0.1.1
|
55
77
|
type: :runtime
|
56
|
-
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
78
|
+
version_requirements: *id004
|
79
|
+
- !ruby/object:Gem::Dependency
|
59
80
|
name: tddium_reporting
|
60
|
-
|
81
|
+
prerelease: false
|
82
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
61
83
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
hash: 19
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
- 0
|
91
|
+
- 6
|
65
92
|
version: 0.0.6
|
66
93
|
type: :runtime
|
67
|
-
|
68
|
-
|
69
|
-
- !ruby/object:Gem::Dependency
|
94
|
+
version_requirements: *id005
|
95
|
+
- !ruby/object:Gem::Dependency
|
70
96
|
name: bundler
|
71
|
-
|
97
|
+
prerelease: false
|
98
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
72
99
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
hash: 3
|
104
|
+
segments:
|
105
|
+
- 0
|
106
|
+
version: "0"
|
77
107
|
type: :runtime
|
78
|
-
|
79
|
-
|
80
|
-
- !ruby/object:Gem::Dependency
|
108
|
+
version_requirements: *id006
|
109
|
+
- !ruby/object:Gem::Dependency
|
81
110
|
name: rspec
|
82
|
-
|
111
|
+
prerelease: false
|
112
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
83
113
|
none: false
|
84
|
-
requirements:
|
85
|
-
- -
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
hash: 3
|
118
|
+
segments:
|
119
|
+
- 0
|
120
|
+
version: "0"
|
88
121
|
type: :development
|
89
|
-
|
90
|
-
|
91
|
-
- !ruby/object:Gem::Dependency
|
122
|
+
version_requirements: *id007
|
123
|
+
- !ruby/object:Gem::Dependency
|
92
124
|
name: fakefs
|
93
|
-
|
125
|
+
prerelease: false
|
126
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
94
127
|
none: false
|
95
|
-
requirements:
|
96
|
-
- -
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
hash: 3
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
version: "0"
|
99
135
|
type: :development
|
100
|
-
|
101
|
-
|
102
|
-
- !ruby/object:Gem::Dependency
|
136
|
+
version_requirements: *id008
|
137
|
+
- !ruby/object:Gem::Dependency
|
103
138
|
name: simplecov
|
104
|
-
|
139
|
+
prerelease: false
|
140
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
105
141
|
none: false
|
106
|
-
requirements:
|
107
|
-
- -
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
hash: 3
|
146
|
+
segments:
|
147
|
+
- 0
|
148
|
+
version: "0"
|
110
149
|
type: :development
|
111
|
-
|
112
|
-
|
113
|
-
- !ruby/object:Gem::Dependency
|
150
|
+
version_requirements: *id009
|
151
|
+
- !ruby/object:Gem::Dependency
|
114
152
|
name: rake
|
115
|
-
|
153
|
+
prerelease: false
|
154
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
116
155
|
none: false
|
117
|
-
requirements:
|
118
|
-
- -
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
hash: 3
|
160
|
+
segments:
|
161
|
+
- 0
|
162
|
+
version: "0"
|
121
163
|
type: :development
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
164
|
+
version_requirements: *id010
|
165
|
+
description: |
|
166
|
+
tddium runs your rspec, cucumber, and test::unit tests in our managed
|
126
167
|
cloud environment. You can run tests by hand, or enable our hosted CI to watch
|
127
|
-
|
128
168
|
your git repos automatically.
|
129
|
-
|
130
|
-
|
169
|
+
|
131
170
|
Tests run in parallel to save you time, and, if you use Rails, tddium takes care
|
132
|
-
|
133
171
|
of setting up fresh isolated DB instances for each test instance.
|
134
|
-
|
135
|
-
|
172
|
+
|
136
173
|
Tests can access a limited set of private Selenium RC servers.
|
137
174
|
|
138
|
-
|
139
|
-
email:
|
175
|
+
email:
|
140
176
|
- info@tddium.com
|
141
|
-
executables:
|
177
|
+
executables:
|
142
178
|
- tddium
|
143
179
|
extensions: []
|
180
|
+
|
144
181
|
extra_rdoc_files: []
|
145
|
-
|
182
|
+
|
183
|
+
files:
|
146
184
|
- .document
|
147
185
|
- .gitignore
|
148
186
|
- CHANGELOG
|
@@ -191,30 +229,41 @@ files:
|
|
191
229
|
- lib/tddium/version.rb
|
192
230
|
- spec/heroku_spec.rb
|
193
231
|
- spec/spec_helper.rb
|
194
|
-
- spec/
|
232
|
+
- spec/tddium_oldspec.rb
|
195
233
|
- tddium.gemspec
|
234
|
+
has_rdoc: true
|
196
235
|
homepage: http://www.tddium.com/
|
197
236
|
licenses: []
|
237
|
+
|
198
238
|
post_install_message:
|
199
239
|
rdoc_options: []
|
200
|
-
|
240
|
+
|
241
|
+
require_paths:
|
201
242
|
- lib
|
202
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
243
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
203
244
|
none: false
|
204
|
-
requirements:
|
205
|
-
- -
|
206
|
-
- !ruby/object:Gem::Version
|
207
|
-
|
208
|
-
|
245
|
+
requirements:
|
246
|
+
- - ">="
|
247
|
+
- !ruby/object:Gem::Version
|
248
|
+
hash: 3
|
249
|
+
segments:
|
250
|
+
- 0
|
251
|
+
version: "0"
|
252
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
253
|
none: false
|
210
|
-
requirements:
|
211
|
-
- -
|
212
|
-
- !ruby/object:Gem::Version
|
213
|
-
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
hash: 3
|
258
|
+
segments:
|
259
|
+
- 0
|
260
|
+
version: "0"
|
214
261
|
requirements: []
|
262
|
+
|
215
263
|
rubyforge_project: tddium
|
216
|
-
rubygems_version: 1.
|
264
|
+
rubygems_version: 1.6.2
|
217
265
|
signing_key:
|
218
266
|
specification_version: 3
|
219
267
|
summary: tddium Hosted Ruby Testing
|
220
268
|
test_files: []
|
269
|
+
|