testability-driver-runner 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -213,6 +213,7 @@ module TDRunner
213
213
  ObjectSpace.each_object( Class ){ | test_class |
214
214
  if test_class.ancestors.include?( Test::Unit::TestCase ) && test_class != Test::Unit::TestCase
215
215
  test_class.public_instance_methods( true ).sort.each{ | method |
216
+ method = method.to_s # for ruby 1.9 compatibility
216
217
  if method =~ /^test_/
217
218
  missing_methods.each do |missing_method|
218
219
  if missing_method.to_s == method
@@ -238,6 +239,7 @@ module TDRunner
238
239
  if tc_line_arr[1].to_s==test_class.name.to_s
239
240
  b_method_exists=false
240
241
  test_class.public_instance_methods( true ).sort.each{ | method |
242
+ method = method.to_s # for ruby 1.9 compatibility
241
243
  if method =~ /^test_/
242
244
  if tc_line_arr[0].to_s==method.to_s
243
245
  b_method_exists=true
@@ -367,7 +369,7 @@ module TDRunner
367
369
  end
368
370
  end
369
371
  end
370
-
372
+
371
373
  return ordered_tests, ordered_contents
372
374
  end
373
375
 
@@ -397,7 +399,7 @@ module TDRunner
397
399
 
398
400
  def organize_features(tests,case_contents_array,case_name_array,tdrunner_parameters)
399
401
  organized_tests=[]
400
-
402
+
401
403
  tests.each do |test_case|
402
404
  profile_index=case_name_array.index test_case.to_s
403
405
  if profile_index == nil
@@ -413,7 +415,7 @@ module TDRunner
413
415
  end
414
416
 
415
417
  end
416
-
418
+
417
419
  organized_tests
418
420
  end
419
421
 
@@ -440,20 +442,19 @@ module TDRunner
440
442
  case_arr=line.split('=')
441
443
  if case_arr.length == 2
442
444
  for i in (1..case_arr[1].to_i)
443
- @case_contents_array << [case_arr[0].gsub('-',''),nil,case_arr[0],'not run'] #name, parameters, place in tree, test result
444
- case_name_array << case_arr[0].gsub('-','')
445
+ @case_contents_array << [case_arr[0],nil,case_arr[0],'not run'] #name, parameters, place in tree, test result
446
+ case_name_array << case_arr[0]
445
447
  end
446
448
  b_profile_file_exist=true
447
449
  elsif case_arr.length == 3
448
450
  for i in (1..case_arr[1].to_i)
449
- @case_contents_array << [case_arr[0].gsub('-',''),case_arr[2],case_arr[0],'not run'] #name, parameters, place in tree, test result
450
- case_name_array << case_arr[0].gsub('-','')
451
+ @case_contents_array << [case_arr[0],case_arr[2],case_arr[0],'not run'] #name, parameters, place in tree, test result
452
+ case_name_array << case_arr[0]
451
453
  end
452
454
  b_profile_file_exist=true
453
455
  end
454
456
  end
455
457
  tests=organize_features(tests,@case_contents_array,case_name_array,tdrunner_parameters)
456
-
457
458
  end
458
459
 
459
460
  if tdrunner_parameters.tdrunner_ordered==false
@@ -495,7 +496,7 @@ module TDRunner
495
496
  end
496
497
  end
497
498
  tests=organize_tests(tests,@case_contents_array,case_name_array,tdrunner_parameters)
498
-
499
+
499
500
  end
500
501
 
501
502
  if tdrunner_parameters.tdrunner_ordered==false
@@ -331,7 +331,7 @@ module TDRunner
331
331
  dirs = File.dirname(failed_sip_profile)
332
332
  if (dirs != ".")
333
333
  #check if the dirs exist, if not create the dirs
334
- File.makedirs(dirs) if !File.exist?(dirs)
334
+ FileUtils.mkdir_p(dirs) if !File.exist?(dirs)
335
335
  sip_file=failed_sip_profile
336
336
  else
337
337
  FileUtils.mkdir_p 'config' if File::directory?('config')==false
@@ -84,6 +84,7 @@ begin
84
84
 
85
85
  collected_tests_and_classes << test_class
86
86
  test_class.public_instance_methods( true ).sort.each{ | method |
87
+ method = method.to_s # for ruby 1.9 compatibility
87
88
  if method =~ /^test_/
88
89
  collected_tests_and_classes << method+"(#{test_class})"
89
90
  @testcases += 1
data/rakefile CHANGED
@@ -11,7 +11,6 @@ require 'rake/clean'
11
11
  require 'rake/gempackagetask'
12
12
  require 'rake/rdoctask'
13
13
  require 'rake/testtask'
14
- require 'spec/rake/spectask'
15
14
 
16
15
  # version information
17
16
  def read_version
@@ -81,11 +80,6 @@ Rake::TestTask.new do |t|
81
80
  t.test_files = FileList['test/**/*.rb']
82
81
  end
83
82
 
84
- Spec::Rake::SpecTask.new do |t|
85
- t.spec_files = FileList['spec/**/*.rb']
86
- end
87
-
88
-
89
83
  desc "Task for installing the generated gem"
90
84
  task :gem_install do
91
85
 
@@ -123,7 +123,8 @@ module SupportTDRunner
123
123
  unless @tests.include? test_class
124
124
  collected_tests_and_classes << test_class.to_s
125
125
  #test_class.public_instance_methods( false ).sort.each{ | method |
126
- test_class.public_instance_methods( false ).each{ | method |
126
+ test_class.public_instance_methods( false ).each{ | method |
127
+ method = method.to_s # for ruby 1.9 compatibility
127
128
  if method =~ /^test_/
128
129
  collected_tests_and_classes << method+"(#{test_class})"
129
130
  @testcases += 1
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testability-driver-runner
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 0
9
- - 0
10
- version: 1.0.0
4
+ version: 1.0.1
11
5
  platform: ruby
12
6
  authors:
13
7
  - Testability Driver team
@@ -15,69 +9,49 @@ autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
11
 
18
- date: 2010-12-20 00:00:00 +02:00
12
+ date: 2011-01-20 00:00:00 +02:00
19
13
  default_executable:
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
16
  name: testability-driver
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
26
20
  requirements:
27
21
  - - ">="
28
22
  - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
23
  version: "0"
33
- type: :runtime
34
- version_requirements: *id001
24
+ version:
35
25
  - !ruby/object:Gem::Dependency
36
26
  name: rails
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
40
30
  requirements:
41
31
  - - ">="
42
32
  - !ruby/object:Gem::Version
43
- hash: 9
44
- segments:
45
- - 2
46
- - 3
47
- - 5
48
33
  version: 2.3.5
49
- type: :runtime
50
- version_requirements: *id002
34
+ version:
51
35
  - !ruby/object:Gem::Dependency
52
36
  name: zippy
53
- prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
55
- none: false
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
56
40
  requirements:
57
41
  - - ">="
58
42
  - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
43
  version: "0"
63
- type: :runtime
64
- version_requirements: *id003
44
+ version:
65
45
  - !ruby/object:Gem::Dependency
66
46
  name: sqlite3-ruby
67
- prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
69
- none: false
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
70
50
  requirements:
71
51
  - - ">="
72
52
  - !ruby/object:Gem::Version
73
- hash: 21
74
- segments:
75
- - 1
76
- - 2
77
- - 5
78
53
  version: 1.2.5
79
- type: :runtime
80
- version_requirements: *id004
54
+ version:
81
55
  description: Testability Driver test runner
82
56
  email: no@mail.com
83
57
  executables:
@@ -92,52 +66,58 @@ files:
92
66
  - rakefile
93
67
  - bin/tdrunner
94
68
  - bin/sierra
95
- - lib/tdrunner_monitor.rb
96
69
  - lib/tdrunner_file_finder.rb
70
+ - lib/tdrunner_profile.rb
97
71
  - lib/tdrunner_cucumber_runners.rb
98
- - lib/tdrunner_test_unit.rb
99
- - lib/tdrunner.yml
100
72
  - lib/tdrunner.rb
73
+ - lib/tdrunner.yml
74
+ - lib/tdrunner_monitor.rb
101
75
  - lib/tdrunner_cucumber.rb
102
- - lib/tdrunner_profile.rb
103
- - websi/config/database.yml
76
+ - lib/tdrunner_test_unit.rb
77
+ - websi/script/about
78
+ - websi/script/performance/benchmarker
79
+ - websi/script/performance/profiler
80
+ - websi/script/console
81
+ - websi/script/destroy
82
+ - websi/script/generate
83
+ - websi/script/runner
84
+ - websi/script/plugin
85
+ - websi/script/server
86
+ - websi/script/dbconsole
87
+ - websi/log/server.log
88
+ - websi/log/development.log
89
+ - websi/log/production.log
90
+ - websi/log/test.log
91
+ - websi/config/environments/development.rb
92
+ - websi/config/environments/production.rb
93
+ - websi/config/environments/test.rb
104
94
  - websi/config/routes.rb
105
- - websi/config/locales/en.yml
95
+ - websi/config/boot.rb
96
+ - websi/config/database.yml
106
97
  - websi/config/environment.rb
98
+ - websi/config/locales/en.yml
107
99
  - websi/config/initializers/inflections.rb
108
100
  - websi/config/initializers/mime_types.rb
109
101
  - websi/config/initializers/new_rails_defaults.rb
110
- - websi/config/initializers/session_store.rb
111
102
  - websi/config/initializers/backtrace_silencers.rb
112
- - websi/config/boot.rb
113
- - websi/config/environments/production.rb
114
- - websi/config/environments/development.rb
115
- - websi/config/environments/test.rb
116
- - websi/log/server.log
117
- - websi/log/test.log
118
- - websi/log/production.log
119
- - websi/log/development.log
120
- - websi/Rakefile
121
- - websi/script/destroy
122
- - websi/script/dbconsole
123
- - websi/script/plugin
124
- - websi/script/runner
125
- - websi/script/performance/profiler
126
- - websi/script/performance/benchmarker
127
- - websi/script/console
128
- - websi/script/server
129
- - websi/script/about
130
- - websi/script/generate
131
- - websi/app/helpers/application_helper.rb
132
- - websi/app/helpers/report_editor/test_run/cases_helper.rb
133
- - websi/app/helpers/report_editor/report_editor_helper.rb
134
- - websi/app/helpers/websi_helper.rb
135
- - websi/app/views/websi/execution.html.erb
103
+ - websi/config/initializers/session_store.rb
104
+ - websi/db/development.sqlite3
105
+ - websi/db/seeds.rb
106
+ - websi/README
107
+ - websi/public/stylesheets/tdriver_report_style.css
108
+ - websi/public/report_editor/test_run/_index.html
109
+ - websi/public/robots.txt
110
+ - websi/public/tests/example_profile.sip
111
+ - websi/public/tests/config/web_profile.sip
112
+ - websi/public/tests/websi_parameters.xml
113
+ - websi/public/tests/tdrunner.yml
114
+ - websi/public/tests/web_profile.sip
115
+ - websi/app/views/websi/results.html.erb
136
116
  - websi/app/views/websi/profile.html.erb
137
- - websi/app/views/websi/index.html.erb
138
117
  - websi/app/views/websi/tests.html.erb
139
118
  - websi/app/views/websi/weights.html.erb
140
- - websi/app/views/websi/results.html.erb
119
+ - websi/app/views/websi/execution.html.erb
120
+ - websi/app/views/websi/index.html.erb
141
121
  - websi/app/views/layouts/application.rhtml
142
122
  - websi/app/controllers/websi_controller.rb
143
123
  - websi/app/controllers/application_controller.rb
@@ -145,22 +125,16 @@ files:
145
125
  - websi/app/controllers/report_editor_controller.rb
146
126
  - websi/app/controllers/websi_support.rb
147
127
  - websi/app/controllers/websi_script.rb
148
- - websi/doc/README_FOR_APP
149
- - websi/README
150
- - websi/test/functional/websi_controller_test.rb
128
+ - websi/app/helpers/websi_helper.rb
129
+ - websi/app/helpers/report_editor/test_run/cases_helper.rb
130
+ - websi/app/helpers/report_editor/report_editor_helper.rb
131
+ - websi/app/helpers/application_helper.rb
151
132
  - websi/test/performance/browsing_test.rb
152
133
  - websi/test/test_helper.rb
134
+ - websi/test/functional/websi_controller_test.rb
153
135
  - websi/test/unit/helpers/websi_helper_test.rb
154
- - websi/public/tests/config/web_profile.sip
155
- - websi/public/tests/websi_parameters.xml
156
- - websi/public/tests/web_profile.sip
157
- - websi/public/tests/tdrunner.yml
158
- - websi/public/tests/example_profile.sip
159
- - websi/public/report_editor/test_run/_index.html
160
- - websi/public/robots.txt
161
- - websi/public/stylesheets/tdriver_report_style.css
162
- - websi/db/seeds.rb
163
- - websi/db/development.sqlite3
136
+ - websi/Rakefile
137
+ - websi/doc/README_FOR_APP
164
138
  has_rdoc: true
165
139
  homepage:
166
140
  licenses: []
@@ -171,27 +145,21 @@ rdoc_options: []
171
145
  require_paths:
172
146
  - lib
173
147
  required_ruby_version: !ruby/object:Gem::Requirement
174
- none: false
175
148
  requirements:
176
149
  - - ">="
177
150
  - !ruby/object:Gem::Version
178
- hash: 3
179
- segments:
180
- - 0
181
151
  version: "0"
152
+ version:
182
153
  required_rubygems_version: !ruby/object:Gem::Requirement
183
- none: false
184
154
  requirements:
185
155
  - - ">="
186
156
  - !ruby/object:Gem::Version
187
- hash: 3
188
- segments:
189
- - 0
190
157
  version: "0"
158
+ version:
191
159
  requirements: []
192
160
 
193
161
  rubyforge_project:
194
- rubygems_version: 1.3.7
162
+ rubygems_version: 1.3.5
195
163
  signing_key:
196
164
  specification_version: 3
197
165
  summary: Testability Driver test runner