test_runner 0.9.6 → 0.9.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +3 -3
- data/docs.md +33 -0
- data/lib/test_runner/helper.rb +1 -271
- data/lib/test_runner/version.rb +2 -2
- data/readme.md +6 -1
- data/release_notes.md +44 -9
- data/test_runner.gemspec +3 -9
- data/tests/test.rb +19 -0
- metadata +15 -99
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fd819714116efd791cf4bd93ac02d2f24e1a2137
|
4
|
+
data.tar.gz: 5e4fb6f4afd6e138db5f663db44c196860a91645
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b4d2eabd541382dee069ca6e8e1acf283d2d8682037ad7f96cb7879971dcf642be58a6a402b52f70959bc0e8d1f734371082551a928b1c84a41daaa6960a4fc5
|
7
|
+
data.tar.gz: 17a74859e0861dbd069a90fade04533ff9a7a52dfd4bff86e9e89be93b7dc685f808bee18f330d66f5fa9f0d54329b98c953dfed578e57900493f11dc4c52373
|
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ require 'date'
|
|
5
5
|
|
6
6
|
# Defines gem name.
|
7
7
|
def repo_name; 'test_runner' end # rubygems.org name
|
8
|
-
def gh_name; '
|
8
|
+
def gh_name; 'test_runner' end # the name as used on github.com
|
9
9
|
def version_file; "lib/#{repo_name}/version.rb" end
|
10
10
|
def version_rgx; /VERSION = '([^']+)'/m end
|
11
11
|
|
@@ -124,7 +124,7 @@ task :notes do
|
|
124
124
|
tag = pair.split('...').last
|
125
125
|
dates.each do |line|
|
126
126
|
# regular tag, or tag on master.
|
127
|
-
if line.include?(
|
127
|
+
if line.include?(tag + ')') || line.include?(tag + ',')
|
128
128
|
tag_date.push tag + ' ' + line.match(/\d{4}-\d{2}-\d{2}/)[0]
|
129
129
|
break
|
130
130
|
end
|
@@ -139,7 +139,7 @@ task :notes do
|
|
139
139
|
# use first 7 chars to match GitHub
|
140
140
|
comment = line.gsub(hex, '').strip
|
141
141
|
next if comment == 'Update release notes'
|
142
|
-
new_data += "- [#{hex[0...7]}](https://github.com/#{gh_name}/commit/#{hex}) #{comment}\n"
|
142
|
+
new_data += "- [#{hex[0...7]}](https://github.com/appium/#{gh_name}/commit/#{hex}) #{comment}\n"
|
143
143
|
end
|
144
144
|
data = new_data + "\n"
|
145
145
|
|
data/docs.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
Test file with output.
|
2
|
+
|
3
|
+
```ruby
|
4
|
+
# encoding: utf-8
|
5
|
+
=begin
|
6
|
+
'--- before_first'
|
7
|
+
|
8
|
+
one | tests for test_runner | 1
|
9
|
+
'--- before'
|
10
|
+
'test one'
|
11
|
+
|
12
|
+
'--- after'
|
13
|
+
|
14
|
+
two | tests for test_runner | 2
|
15
|
+
'--- before'
|
16
|
+
'test two';
|
17
|
+
'--- after'
|
18
|
+
'--- after_last'
|
19
|
+
|
20
|
+
Finished in 0s
|
21
|
+
2 tests
|
22
|
+
=end
|
23
|
+
describe 'tests for test_runner' do
|
24
|
+
after do; '--- after' end
|
25
|
+
before do; '--- before' end
|
26
|
+
after_last do; '--- after_last' end
|
27
|
+
before_first do; '--- before_first' end
|
28
|
+
t 'one' do
|
29
|
+
'test one'
|
30
|
+
end
|
31
|
+
t 'two' do; 'test two'; end
|
32
|
+
end
|
33
|
+
```
|
data/lib/test_runner/helper.rb
CHANGED
@@ -1,274 +1,4 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require 'rubygems'
|
3
3
|
require 'appium_lib'
|
4
|
-
require '
|
5
|
-
require 'minitest/autorun' # requires minitest-4.7.4
|
6
|
-
require 'minitest/reporters' # Format the report
|
7
|
-
|
8
|
-
# for Sauce Labs reporting
|
9
|
-
require 'rest_client' # https://github.com/archiloque/rest-client
|
10
|
-
require 'json' # for .to_json
|
11
|
-
|
12
|
-
# https://github.com/banister/method_source
|
13
|
-
# gem install method_source
|
14
|
-
require 'method_source' # for .source
|
15
|
-
|
16
|
-
$passed = true
|
17
|
-
|
18
|
-
# Report passed status to Sauce and quit the driver.
|
19
|
-
def update_sauce opts
|
20
|
-
# must use selenium-webdriver (2.32.1) or better for .session_id
|
21
|
-
id = session_id
|
22
|
-
driver_quit
|
23
|
-
|
24
|
-
if !sauce_username.nil? && !sauce_access_key.nil?
|
25
|
-
url = "https://#{sauce_username}:#{sauce_access_key}@saucelabs.com/rest/v1/#{sauce_username}/jobs/#{id}"
|
26
|
-
puts "Posting passed result #{$passed} to Sauce"
|
27
|
-
json = { 'passed' => opts[:passed] }.to_json
|
28
|
-
# Keep trying until passed is set correctly. Give up after 30 seconds.
|
29
|
-
wait do
|
30
|
-
response = RestClient.put url, json, :content_type => :json, :accept => :json
|
31
|
-
response = JSON.parse(response)
|
32
|
-
puts "Response #{response}"
|
33
|
-
|
34
|
-
# Check that the server responded with the right value.
|
35
|
-
response['passed'] == $passed
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
# Run tests in order
|
41
|
-
class MiniTest::Unit::TestCase
|
42
|
-
def self.test_order; :alpha end
|
43
|
-
end
|
44
|
-
|
45
|
-
class MiniTest::Reporters::ProgressReporter::Progress
|
46
|
-
def show *args; end
|
47
|
-
def close; end
|
48
|
-
def wipe; end
|
49
|
-
def scope; end
|
50
|
-
end
|
51
|
-
|
52
|
-
class MiniTest::Reporters::ProgressReporter
|
53
|
-
# no power bar
|
54
|
-
def initialize(options = {})
|
55
|
-
@detailed_skip = options.fetch(:detailed_skip, true)
|
56
|
-
@progress = Progress.new
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
# rename test, change end message.
|
61
|
-
# https://github.com/CapnKernul/minitest-reporters/blob/master/lib/minitest/reporters/progress_reporter.rb
|
62
|
-
class MiniTest::Reporters::ProgressReporter
|
63
|
-
def failure(suite, test, test_runner)
|
64
|
-
wipe
|
65
|
-
print(red { 'FAIL' })
|
66
|
-
print_test_with_time(suite, test)
|
67
|
-
puts
|
68
|
-
print_info(test_runner.exception, false)
|
69
|
-
puts
|
70
|
-
$passed = false # set global passed
|
71
|
-
exit 1 # exit at first fail
|
72
|
-
end
|
73
|
-
def error(suite, test, test_runner)
|
74
|
-
test = test.to_s.sub(/test_\d+_/, '').to_sym
|
75
|
-
wipe
|
76
|
-
print(red { 'ERROR' })
|
77
|
-
print_test_with_time(suite, test)
|
78
|
-
puts
|
79
|
-
print_info(test_runner.exception)
|
80
|
-
$passed = false # set global passed
|
81
|
-
exit 1 # exit at first fail
|
82
|
-
end
|
83
|
-
def after_suites(suites, type)
|
84
|
-
@progress.close if @progress
|
85
|
-
|
86
|
-
total_time = Time.now - runner.suites_start_time
|
87
|
-
# puts "Total time: #{total_time}"
|
88
|
-
wipe if @progress
|
89
|
-
puts
|
90
|
-
puts "Finished in #{ChronicDuration.output(total_time.round) || '0s'}"
|
91
|
-
tests = runner.test_count
|
92
|
-
asserts = runner.assertion_count
|
93
|
-
fails = runner.failures
|
94
|
-
errors = runner.errors
|
95
|
-
skips = runner.skips
|
96
|
-
# Store pass/fail result and send to Sauce Labs
|
97
|
-
$passed = false if fails > 0 || errors > 0
|
98
|
-
out = ''
|
99
|
-
out += ("%d test#{tests == 1 ? '' : 's'}#{(asserts == fails && fails == errors && errors == skips && skips == 0) ? '' : ', '}" % [tests])
|
100
|
-
out += ('%d assertions, ' % [runner.assertion_count]) unless asserts == 0
|
101
|
-
out += (red { '%d failures, ' } % [runner.failures]) unless fails == 0
|
102
|
-
out += (red { "%d error#{runner.errors == 1 ? '' : 's'}#{skips ? '' : ', '}" } % [errors]) unless errors == 0
|
103
|
-
out += (yellow { '%d skips' } % runner.skips) unless skips == 0
|
104
|
-
out = out.strip.gsub(/,\w*$/, '')
|
105
|
-
puts out
|
106
|
-
puts
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
|
-
MiniTest::Reporters.use! MiniTest::Reporters::ProgressReporter.new
|
111
|
-
|
112
|
-
# Alter '# Run options:' from minitest-reports
|
113
|
-
# https://github.com/CapnKernul/minitest-reporters/blob/master/lib/minitest/reporter_runner.rb#L28
|
114
|
-
class MiniTest::ReporterRunner < MiniTest::Unit
|
115
|
-
def _run_suites(suites, type)
|
116
|
-
# test_order = @help.match /\-\-seed (\d+)/
|
117
|
-
# '# Run options: --seed 10181' => 'test order: 10181'
|
118
|
-
# $stdout.puts "test order: #{test_order[1]}" if test_order
|
119
|
-
@suites_start_time = Time.now
|
120
|
-
count_tests!(suites, type)
|
121
|
-
trigger_callback(:before_suites, suites, type)
|
122
|
-
super(suites, type)
|
123
|
-
ensure
|
124
|
-
trigger_callback(:after_suites, suites, type)
|
125
|
-
end
|
126
|
-
|
127
|
-
# Silence run options
|
128
|
-
def _run args = []
|
129
|
-
args = process_args args
|
130
|
-
self.options.merge! args
|
131
|
-
|
132
|
-
self.class.plugins.each do |plugin|
|
133
|
-
send plugin
|
134
|
-
break unless report.empty?
|
135
|
-
end
|
136
|
-
|
137
|
-
return failures + errors if self.test_count > 0 # or return nil...
|
138
|
-
rescue Interrupt
|
139
|
-
abort 'Interrupted'
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
|
-
# prevent undefined method
|
144
|
-
class MiniTest::Spec
|
145
|
-
def after_last_method; end
|
146
|
-
def before_first_method; end
|
147
|
-
end
|
148
|
-
|
149
|
-
class MiniTest::Spec < MiniTest::Unit::TestCase
|
150
|
-
module DSL
|
151
|
-
# DSL accepts a block which defines a method.
|
152
|
-
# The method is called later.
|
153
|
-
# after_last DSL defines the after_last_method
|
154
|
-
# which is invoked on a test case.
|
155
|
-
def after_last &block
|
156
|
-
define_method 'after_last_method' do
|
157
|
-
self.instance_eval &block
|
158
|
-
end
|
159
|
-
end
|
160
|
-
|
161
|
-
def before_first &block
|
162
|
-
define_method 'before_first_method' do
|
163
|
-
self.instance_eval &block
|
164
|
-
end
|
165
|
-
end
|
166
|
-
end
|
167
|
-
end
|
168
|
-
|
169
|
-
class MiniTest::Unit
|
170
|
-
def _run_suites suites, type
|
171
|
-
suites.map do |suite|
|
172
|
-
puts
|
173
|
-
puts "Running #{suite}"
|
174
|
-
puts
|
175
|
-
suite.test_methods.each do |test_name|
|
176
|
-
test_method = suite.instance_method(test_name)
|
177
|
-
if test_method.respond_to? :source
|
178
|
-
src = test_method.source
|
179
|
-
else
|
180
|
-
next
|
181
|
-
end
|
182
|
-
|
183
|
-
next unless src.kind_of? String
|
184
|
-
|
185
|
-
ary = src.split "\n"
|
186
|
-
# this may break code that spans more than one line
|
187
|
-
carry_over = ''
|
188
|
-
carry_over_puts = ''
|
189
|
-
center = ary[1..-2].map do |line|
|
190
|
-
printed_line = line.strip
|
191
|
-
# transform \n into \\n so it's printed properly by puts
|
192
|
-
printed_line = printed_line.gsub /\\/, '\\' * 4
|
193
|
-
result = "puts %(#{printed_line})\n#{line}"
|
194
|
-
|
195
|
-
begin
|
196
|
-
# chop off anything after '#'
|
197
|
-
# puts "Line: #{line}" if !carry_over.empty?
|
198
|
-
# check syntax will be nil if the line is just a comment
|
199
|
-
check_syntax = line.split('#').first
|
200
|
-
eval 'lambda {' + check_syntax + '}' if check_syntax
|
201
|
-
# syntax is ok. prepend carry over
|
202
|
-
result = carry_over_puts + carry_over + "\n" + result
|
203
|
-
carry_over = ''
|
204
|
-
carry_over_puts = ''
|
205
|
-
rescue SyntaxError
|
206
|
-
# invalid syntax, carry over next line
|
207
|
-
# puts "-- Adding to carry over before: #{carry_over}"
|
208
|
-
carry_over += "\n" + line
|
209
|
-
carry_over_puts += "\n" + "puts %(#{printed_line})"
|
210
|
-
# puts "-- Adding to carry over after: #{carry_over}"
|
211
|
-
result = ''
|
212
|
-
end
|
213
|
-
# puts "Result is: #{result}" if result.include? 'password'
|
214
|
-
result#.gsub!('puts %()', '') # remove empty puts
|
215
|
-
end
|
216
|
-
# must use define method for test names with spaces.
|
217
|
-
rewrite = ["define_method(%Q(#{test_name})) do\n", center.join("\n"), ary.last].join "\n"
|
218
|
-
# $stdout.puts ' --- rewriting'
|
219
|
-
# $stdout.puts rewrite
|
220
|
-
# $stdout.puts ' --- rewrite complete'
|
221
|
-
# undefine the existing test name
|
222
|
-
# public_instance_methods
|
223
|
-
#$stdout.puts 'suite.class_eval { undef ' + test_name + ' }'
|
224
|
-
# undef old test before defining new test
|
225
|
-
# $stdout.puts "undef: #{test_name}"
|
226
|
-
eval 'suite.class_eval { undef :"' + test_name + '" }'
|
227
|
-
# adjust spec count
|
228
|
-
suite.instance_variable_set(:@specs, suite.instance_variable_get(:@specs) - 1)
|
229
|
-
# define new method
|
230
|
-
# $stdout.puts "def: #{rewrite.split("\n").first}"
|
231
|
-
suite.instance_eval( rewrite )
|
232
|
-
end
|
233
|
-
method_instance = suite.new(suite.test_methods.first)
|
234
|
-
method_instance.before_first_method
|
235
|
-
result = _run_suite suite, type
|
236
|
-
# suite isn't an instance that contains 'after_last_method'
|
237
|
-
# create test instance and invoke after_last_method
|
238
|
-
method_instance.after_last_method
|
239
|
-
result
|
240
|
-
end
|
241
|
-
end
|
242
|
-
end
|
243
|
-
|
244
|
-
# alias t to it
|
245
|
-
class MiniTest::Spec < MiniTest::Unit::TestCase
|
246
|
-
module DSL
|
247
|
-
alias_method :t, :it
|
248
|
-
end
|
249
|
-
end
|
250
|
-
|
251
|
-
module MiniTest::Reporter
|
252
|
-
def verbose?; true end
|
253
|
-
end
|
254
|
-
|
255
|
-
module MiniTest::Reporter
|
256
|
-
def before_test(suite, test)
|
257
|
-
puts
|
258
|
-
# 'test_0002_::Appium::DATE' => ::Appium::DATE | version.rb | 2
|
259
|
-
test_number = test.match(/test_(\d+)_/)[1].to_i
|
260
|
-
test_str = test.split(/_\d+_/).last
|
261
|
-
puts ANSI.cyan { "#{test_str} | #{suite.to_s.gsub('::', ' ')} | #{test_number}" }
|
262
|
-
end
|
263
|
-
end
|
264
|
-
|
265
|
-
=begin
|
266
|
-
#
|
267
|
-
# Add after to each test case
|
268
|
-
#
|
269
|
-
class MiniTest::Unit::TestCase
|
270
|
-
def before_teardown
|
271
|
-
mobile :reset
|
272
|
-
end
|
273
|
-
end
|
274
|
-
=end
|
4
|
+
require 'spec'
|
data/lib/test_runner/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
module TestRunner
|
3
|
-
VERSION = '0.9.
|
4
|
-
DATE = '2013-07
|
3
|
+
VERSION = '0.9.11' unless defined? ::TestRunner::VERSION
|
4
|
+
DATE = '2013-08-07' unless defined? ::TestRunner::DATE
|
5
5
|
end
|
data/readme.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
-
#### test_runner [![Gem Version](https://badge.fury.io/rb/test_runner.png)](http://rubygems.org/gems/test_runner)[![Dependency Status](https://gemnasium.com/
|
1
|
+
#### test_runner [![Gem Version](https://badge.fury.io/rb/test_runner.png)](http://rubygems.org/gems/test_runner)[![Dependency Status](https://gemnasium.com/appium/test_runner.png)](https://gemnasium.com/appium/test_runner)
|
2
2
|
|
3
3
|
A test runner for use with the appium_lib gem and minitest.
|
4
|
+
|
5
|
+
Used by:
|
6
|
+
|
7
|
+
- [appium/ruby_lib_android](https://github.com/appium/ruby_lib_android)
|
8
|
+
- [appium/ruby_lib_ios](https://github.com/appium/ruby_lib_ios)
|
data/release_notes.md
CHANGED
@@ -1,23 +1,58 @@
|
|
1
|
+
#### v0.9.10 2013-08-05
|
2
|
+
|
3
|
+
- [0ab201e](https://github.com/appium/test_runner/commit/0ab201e8a02ae2b1a1f3e4cfde34a25092575638) Release 0.9.10
|
4
|
+
- [d963ca5](https://github.com/appium/test_runner/commit/d963ca57fd79bcabd5c91d53f5c6170a81494dda) Fix appium_lib
|
5
|
+
|
6
|
+
|
7
|
+
#### v0.9.9 2013-08-05
|
8
|
+
|
9
|
+
- [d2391f9](https://github.com/appium/test_runner/commit/d2391f9e2d00fdd3fc4214ac11ceeff986952200) Release 0.9.9
|
10
|
+
- [6c6af4e](https://github.com/appium/test_runner/commit/6c6af4e6f64c750502017dc2ff3da6cd1cd4ac0e) Fix spec
|
11
|
+
|
12
|
+
|
13
|
+
#### v0.9.8 2013-08-05
|
14
|
+
|
15
|
+
- [c75cbb8](https://github.com/appium/test_runner/commit/c75cbb80ddaf17939b5cbbaa763ef033f1742d91) Release 0.9.8
|
16
|
+
- [d4f4670](https://github.com/appium/test_runner/commit/d4f467006863662b059e49f9a0adf35adc04e6a5) Add test file
|
17
|
+
- [3ab07d5](https://github.com/appium/test_runner/commit/3ab07d50837182d37c37e1b4e40713e4f047bb2c) Fix release notes
|
18
|
+
|
19
|
+
|
20
|
+
#### v0.9.7 2013-07-26
|
21
|
+
|
22
|
+
- [3565227](https://github.com/appium/test_runner/commit/3565227c51844f0ec4652d342293ba47a4e7a39d) Release 0.9.7
|
23
|
+
- [a77d90f](https://github.com/appium/test_runner/commit/a77d90f44e0f3fd7428000ea9a303241993aa5c4) Use new appium_lib
|
24
|
+
- [91fbd06](https://github.com/appium/test_runner/commit/91fbd0662f8dee060bf39704cd014197e433fb05) Update URL
|
25
|
+
- [cc00b36](https://github.com/appium/test_runner/commit/cc00b360903636644bddcdb579e89d22450f802e) Update URL
|
26
|
+
- [bd43797](https://github.com/appium/test_runner/commit/bd4379707db9896ec5ec9f51f4f4fbc9dc2f5d40) Update readme.md
|
27
|
+
- [2eb2e82](https://github.com/appium/test_runner/commit/2eb2e82334a2eab6e786856a937603e1aee955d1) Add docs file
|
28
|
+
- [17de27e](https://github.com/appium/test_runner/commit/17de27e7cd22ce0cd62f64aac2f26b55a63b8992) Add DSL methods to source printing
|
29
|
+
|
30
|
+
|
31
|
+
#### v0.9.6 2013-07-03
|
32
|
+
|
33
|
+
- [f5b08e6](https://github.com/appium/test_runner/commit/f5b08e6754885b282be4c51781dddaa3b87c0d1d) Release 0.9.6
|
34
|
+
|
35
|
+
|
1
36
|
#### v0.9.5 2013-07-01
|
2
37
|
|
3
|
-
- [e80f170](https://github.com/
|
4
|
-
- [b5e7bb7](https://github.com/
|
5
|
-
- [3681fed](https://github.com/
|
6
|
-
- [36359fe](https://github.com/
|
38
|
+
- [e80f170](https://github.com/appium/test_runner/commit/e80f1709ecec7b987389efe559b8a36bc4f33051) Release 0.9.5
|
39
|
+
- [b5e7bb7](https://github.com/appium/test_runner/commit/b5e7bb7c1a28f1574b2c610f18c20916e485416d) Update gemspec. Add Gemfile
|
40
|
+
- [3681fed](https://github.com/appium/test_runner/commit/3681fed4e41667011ac4af60f9f3879048ce785d) Update readme.md
|
41
|
+
- [36359fe](https://github.com/appium/test_runner/commit/36359fe547cac10272226c453d543607844f77a2) Add badge
|
7
42
|
|
8
43
|
|
9
44
|
#### v0.9.4 2013-06-18
|
10
45
|
|
11
|
-
- [4540bc2](https://github.com/
|
46
|
+
- [4540bc2](https://github.com/appium/test_runner/commit/4540bc2963f1ffed766d0011baa26144c0bcc1ee) Release 0.9.4
|
12
47
|
|
13
48
|
|
14
49
|
#### v0.9.3 2013-06-18
|
15
50
|
|
16
|
-
- [e71cf11](https://github.com/
|
17
|
-
- [38efb41](https://github.com/
|
51
|
+
- [e71cf11](https://github.com/appium/test_runner/commit/e71cf11eca3751c6057b2c13dd6f05867ce068e4) Release 0.9.3
|
52
|
+
- [38efb41](https://github.com/appium/test_runner/commit/38efb417202198b1b001f1f09efb283b2c8ba834) Add notes
|
18
53
|
|
19
54
|
|
20
55
|
#### v0.9.2 2013-06-18
|
21
56
|
|
22
|
-
- [65bc19d](https://github.com/
|
23
|
-
- [ea2d1b3](https://github.com/
|
57
|
+
- [65bc19d](https://github.com/appium/test_runner/commit/65bc19d6ab4ce546688a92d82c61b0fe3d253274) Release 0.9.2
|
58
|
+
- [ea2d1b3](https://github.com/appium/test_runner/commit/ea2d1b3ba635210a516aeeb1d855cadceca8f36c) Release 0.9.1
|
data/test_runner.gemspec
CHANGED
@@ -20,17 +20,11 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.description = s.summary = 'TestRunner'
|
21
21
|
s.description += '.' # avoid identical warning
|
22
22
|
s.authors = s.email = [ 'code@bootstraponline.com' ]
|
23
|
-
s.homepage = 'https://github.com/
|
23
|
+
s.homepage = 'https://github.com/appium/test_runner'
|
24
24
|
s.require_paths = [ 'lib' ]
|
25
25
|
|
26
|
-
s.add_runtime_dependency 'appium_lib', '= 0.
|
27
|
-
s.add_runtime_dependency '
|
28
|
-
s.add_runtime_dependency 'method_source', '~> 0.8.1'
|
29
|
-
# don't update minutest until minitest-reporters works with minitest 5
|
30
|
-
s.add_runtime_dependency 'minitest', '= 4.7.4'
|
31
|
-
s.add_runtime_dependency 'minitest-reporters', '= 0.14.18'
|
32
|
-
s.add_runtime_dependency 'rake', '~> 10.1.0'
|
33
|
-
s.add_runtime_dependency 'rest-client', '~> 1.6.7'
|
26
|
+
s.add_runtime_dependency 'appium_lib', '= 0.6.2'
|
27
|
+
s.add_runtime_dependency 'spec', '= 5.0.14'
|
34
28
|
|
35
29
|
s.files = `git ls-files`.split "\n"
|
36
30
|
end
|
data/tests/test.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'test_runner'
|
3
|
+
|
4
|
+
describe 'tests for test_runner' do
|
5
|
+
after do; '--- after' end
|
6
|
+
before do; '--- before' end
|
7
|
+
after_last do; '--- after_last' end
|
8
|
+
before_first do; '--- before_first' end
|
9
|
+
t 'one' do
|
10
|
+
'test one'
|
11
|
+
end
|
12
|
+
t 'two' do; 'test two'; end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe 'describe 2' do
|
16
|
+
t 'three' do
|
17
|
+
'3'
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,128 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
5
|
-
prerelease:
|
4
|
+
version: 0.9.11
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- code@bootstraponline.com
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-07
|
11
|
+
date: 2013-08-07 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: appium_lib
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
19
|
+
version: 0.6.2
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
26
|
+
version: 0.6.2
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
28
|
+
name: spec
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 0.10.2
|
38
|
-
type: :runtime
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 0.10.2
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: method_source
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 0.8.1
|
54
|
-
type: :runtime
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.8.1
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: minitest
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
30
|
requirements:
|
67
31
|
- - '='
|
68
32
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
33
|
+
version: 5.0.14
|
70
34
|
type: :runtime
|
71
35
|
prerelease: false
|
72
36
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
37
|
requirements:
|
75
38
|
- - '='
|
76
39
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: minitest-reporters
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - '='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: 0.14.18
|
86
|
-
type: :runtime
|
87
|
-
prerelease: false
|
88
|
-
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - '='
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: 0.14.18
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: rake
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ~>
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: 10.1.0
|
102
|
-
type: :runtime
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ~>
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 10.1.0
|
110
|
-
- !ruby/object:Gem::Dependency
|
111
|
-
name: rest-client
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ~>
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 1.6.7
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ~>
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: 1.6.7
|
40
|
+
version: 5.0.14
|
126
41
|
description: TestRunner.
|
127
42
|
email:
|
128
43
|
- code@bootstraponline.com
|
@@ -133,36 +48,37 @@ files:
|
|
133
48
|
- Gemfile
|
134
49
|
- LICENSE-2.0.txt
|
135
50
|
- Rakefile
|
51
|
+
- docs.md
|
136
52
|
- lib/test_runner.rb
|
137
53
|
- lib/test_runner/helper.rb
|
138
54
|
- lib/test_runner/version.rb
|
139
55
|
- readme.md
|
140
56
|
- release_notes.md
|
141
57
|
- test_runner.gemspec
|
142
|
-
|
58
|
+
- tests/test.rb
|
59
|
+
homepage: https://github.com/appium/test_runner
|
143
60
|
licenses:
|
144
61
|
- http://www.apache.org/licenses/LICENSE-2.0.txt
|
62
|
+
metadata: {}
|
145
63
|
post_install_message:
|
146
64
|
rdoc_options: []
|
147
65
|
require_paths:
|
148
66
|
- lib
|
149
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
150
|
-
none: false
|
151
68
|
requirements:
|
152
|
-
- -
|
69
|
+
- - '>='
|
153
70
|
- !ruby/object:Gem::Version
|
154
71
|
version: 1.9.3
|
155
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
-
none: false
|
157
73
|
requirements:
|
158
|
-
- -
|
74
|
+
- - '>='
|
159
75
|
- !ruby/object:Gem::Version
|
160
76
|
version: '0'
|
161
77
|
requirements: []
|
162
78
|
rubyforge_project:
|
163
|
-
rubygems_version:
|
79
|
+
rubygems_version: 2.0.6
|
164
80
|
signing_key:
|
165
|
-
specification_version:
|
81
|
+
specification_version: 4
|
166
82
|
summary: TestRunner
|
167
83
|
test_files: []
|
168
84
|
has_rdoc:
|