testability-driver-runner 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/sierra +19 -0
- data/bin/tdrunner +17 -0
- data/lib/tdrunner.rb +208 -0
- data/lib/tdrunner.yml +1 -0
- data/lib/tdrunner_cucumber.rb +222 -0
- data/lib/tdrunner_cucumber_runners.rb +35 -0
- data/lib/tdrunner_file_finder.rb +45 -0
- data/lib/tdrunner_monitor.rb +473 -0
- data/lib/tdrunner_profile.rb +416 -0
- data/lib/tdrunner_test_unit.rb +433 -0
- data/rakefile +135 -0
- data/readme +186 -0
- data/websi/README +243 -0
- data/websi/Rakefile +10 -0
- data/websi/app/controllers/application_controller.rb +29 -0
- data/websi/app/controllers/report_editor/test_run/cases_controller.rb +307 -0
- data/websi/app/controllers/report_editor_controller.rb +25 -0
- data/websi/app/controllers/websi_controller.rb +478 -0
- data/websi/app/controllers/websi_script.rb +26 -0
- data/websi/app/controllers/websi_support.rb +142 -0
- data/websi/app/helpers/application_helper.rb +22 -0
- data/websi/app/helpers/report_editor/report_editor_helper.rb +26 -0
- data/websi/app/helpers/report_editor/test_run/cases_helper.rb +26 -0
- data/websi/app/helpers/websi_helper.rb +21 -0
- data/websi/app/views/layouts/application.rhtml +17 -0
- data/websi/app/views/websi/execution.html.erb +28 -0
- data/websi/app/views/websi/index.html.erb +23 -0
- data/websi/app/views/websi/profile.html.erb +30 -0
- data/websi/app/views/websi/results.html.erb +30 -0
- data/websi/app/views/websi/tests.html.erb +23 -0
- data/websi/app/views/websi/weights.html.erb +16 -0
- data/websi/config/boot.rb +129 -0
- data/websi/config/database.yml +22 -0
- data/websi/config/environment.rb +60 -0
- data/websi/config/environments/development.rb +36 -0
- data/websi/config/environments/production.rb +47 -0
- data/websi/config/environments/test.rb +47 -0
- data/websi/config/initializers/backtrace_silencers.rb +26 -0
- data/websi/config/initializers/inflections.rb +29 -0
- data/websi/config/initializers/mime_types.rb +24 -0
- data/websi/config/initializers/new_rails_defaults.rb +40 -0
- data/websi/config/initializers/session_store.rb +34 -0
- data/websi/config/locales/en.yml +5 -0
- data/websi/config/routes.rb +62 -0
- data/websi/db/development.sqlite3 +0 -0
- data/websi/db/seeds.rb +26 -0
- data/websi/doc/README_FOR_APP +2 -0
- data/websi/log/development.log +0 -0
- data/websi/log/production.log +0 -0
- data/websi/log/server.log +0 -0
- data/websi/log/test.log +0 -0
- data/websi/public/report_editor/test_run/_index.html +12 -0
- data/websi/public/robots.txt +5 -0
- data/websi/public/stylesheets/tdriver_report_style.css +220 -0
- data/websi/public/tests/config/web_profile.sip +0 -0
- data/websi/public/tests/example_profile.sip +8 -0
- data/websi/public/tests/tdrunner.yml +3 -0
- data/websi/public/tests/web_profile.sip +8 -0
- data/websi/public/tests/websi_parameters.xml +4 -0
- data/websi/script/about +4 -0
- data/websi/script/console +3 -0
- data/websi/script/dbconsole +3 -0
- data/websi/script/destroy +3 -0
- data/websi/script/generate +3 -0
- data/websi/script/performance/benchmarker +3 -0
- data/websi/script/performance/profiler +3 -0
- data/websi/script/plugin +3 -0
- data/websi/script/runner +3 -0
- data/websi/script/server +3 -0
- data/websi/test/functional/websi_controller_test.rb +27 -0
- data/websi/test/performance/browsing_test.rb +28 -0
- data/websi/test/test_helper.rb +57 -0
- data/websi/test/unit/helpers/websi_helper_test.rb +23 -0
- metadata +199 -0
data/websi/script/plugin
ADDED
data/websi/script/runner
ADDED
data/websi/script/server
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
############################################################################
|
2
|
+
##
|
3
|
+
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
4
|
+
## All rights reserved.
|
5
|
+
## Contact: Nokia Corporation (testabilitydriver@nokia.com)
|
6
|
+
##
|
7
|
+
## This file is part of Testability Driver.
|
8
|
+
##
|
9
|
+
## If you have questions regarding the use of this file, please contact
|
10
|
+
## Nokia at testabilitydriver@nokia.com .
|
11
|
+
##
|
12
|
+
## This library is free software; you can redistribute it and/or
|
13
|
+
## modify it under the terms of the GNU Lesser General Public
|
14
|
+
## License version 2.1 as published by the Free Software Foundation
|
15
|
+
## and appearing in the file LICENSE.LGPL included in the packaging
|
16
|
+
## of this file.
|
17
|
+
##
|
18
|
+
############################################################################
|
19
|
+
|
20
|
+
require 'test_helper'
|
21
|
+
|
22
|
+
class WebsiControllerTest < ActionController::TestCase
|
23
|
+
# Replace this with your real tests.
|
24
|
+
test "the truth" do
|
25
|
+
assert true
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
############################################################################
|
2
|
+
##
|
3
|
+
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
4
|
+
## All rights reserved.
|
5
|
+
## Contact: Nokia Corporation (testabilitydriver@nokia.com)
|
6
|
+
##
|
7
|
+
## This file is part of Testability Driver.
|
8
|
+
##
|
9
|
+
## If you have questions regarding the use of this file, please contact
|
10
|
+
## Nokia at testabilitydriver@nokia.com .
|
11
|
+
##
|
12
|
+
## This library is free software; you can redistribute it and/or
|
13
|
+
## modify it under the terms of the GNU Lesser General Public
|
14
|
+
## License version 2.1 as published by the Free Software Foundation
|
15
|
+
## and appearing in the file LICENSE.LGPL included in the packaging
|
16
|
+
## of this file.
|
17
|
+
##
|
18
|
+
############################################################################
|
19
|
+
|
20
|
+
require 'test_helper'
|
21
|
+
require 'performance_test_help'
|
22
|
+
|
23
|
+
# Profiling results for each test method are written to tmp/performance.
|
24
|
+
class BrowsingTest < ActionController::PerformanceTest
|
25
|
+
def test_homepage
|
26
|
+
get '/'
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
############################################################################
|
2
|
+
##
|
3
|
+
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
4
|
+
## All rights reserved.
|
5
|
+
## Contact: Nokia Corporation (testabilitydriver@nokia.com)
|
6
|
+
##
|
7
|
+
## This file is part of Testability Driver.
|
8
|
+
##
|
9
|
+
## If you have questions regarding the use of this file, please contact
|
10
|
+
## Nokia at testabilitydriver@nokia.com .
|
11
|
+
##
|
12
|
+
## This library is free software; you can redistribute it and/or
|
13
|
+
## modify it under the terms of the GNU Lesser General Public
|
14
|
+
## License version 2.1 as published by the Free Software Foundation
|
15
|
+
## and appearing in the file LICENSE.LGPL included in the packaging
|
16
|
+
## of this file.
|
17
|
+
##
|
18
|
+
############################################################################
|
19
|
+
|
20
|
+
ENV["RAILS_ENV"] = "test"
|
21
|
+
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
22
|
+
require 'test_help'
|
23
|
+
|
24
|
+
class ActiveSupport::TestCase
|
25
|
+
# Transactional fixtures accelerate your tests by wrapping each test method
|
26
|
+
# in a transaction that's rolled back on completion. This ensures that the
|
27
|
+
# test database remains unchanged so your fixtures don't have to be reloaded
|
28
|
+
# between every test method. Fewer database queries means faster tests.
|
29
|
+
#
|
30
|
+
# Read Mike Clark's excellent walkthrough at
|
31
|
+
# http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
|
32
|
+
#
|
33
|
+
# Every Active Record database supports transactions except MyISAM tables
|
34
|
+
# in MySQL. Turn off transactional fixtures in this case; however, if you
|
35
|
+
# don't care one way or the other, switching from MyISAM to InnoDB tables
|
36
|
+
# is recommended.
|
37
|
+
#
|
38
|
+
# The only drawback to using transactional fixtures is when you actually
|
39
|
+
# need to test transactions. Since your test is bracketed by a transaction,
|
40
|
+
# any transactions started in your code will be automatically rolled back.
|
41
|
+
self.use_transactional_fixtures = true
|
42
|
+
|
43
|
+
# Instantiated fixtures are slow, but give you @david where otherwise you
|
44
|
+
# would need people(:david). If you don't want to migrate your existing
|
45
|
+
# test cases which use the @david style and don't mind the speed hit (each
|
46
|
+
# instantiated fixtures translates to a database query per test method),
|
47
|
+
# then set this back to true.
|
48
|
+
self.use_instantiated_fixtures = false
|
49
|
+
|
50
|
+
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
51
|
+
#
|
52
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
53
|
+
# -- they do not yet inherit this setting
|
54
|
+
fixtures :all
|
55
|
+
|
56
|
+
# Add more helper methods to be used by all tests here...
|
57
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
############################################################################
|
2
|
+
##
|
3
|
+
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
4
|
+
## All rights reserved.
|
5
|
+
## Contact: Nokia Corporation (testabilitydriver@nokia.com)
|
6
|
+
##
|
7
|
+
## This file is part of Testability Driver.
|
8
|
+
##
|
9
|
+
## If you have questions regarding the use of this file, please contact
|
10
|
+
## Nokia at testabilitydriver@nokia.com .
|
11
|
+
##
|
12
|
+
## This library is free software; you can redistribute it and/or
|
13
|
+
## modify it under the terms of the GNU Lesser General Public
|
14
|
+
## License version 2.1 as published by the Free Software Foundation
|
15
|
+
## and appearing in the file LICENSE.LGPL included in the packaging
|
16
|
+
## of this file.
|
17
|
+
##
|
18
|
+
############################################################################
|
19
|
+
|
20
|
+
require 'test_helper'
|
21
|
+
|
22
|
+
class WebsiHelperTest < ActionView::TestCase
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,199 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: testability-driver-runner
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 63
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 9
|
9
|
+
- 2
|
10
|
+
version: 0.9.2
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Testability Driver team
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-11-02 00:00:00 +02:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: testability-driver
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: rails
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - "="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 9
|
44
|
+
segments:
|
45
|
+
- 2
|
46
|
+
- 3
|
47
|
+
- 5
|
48
|
+
version: 2.3.5
|
49
|
+
type: :runtime
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: zippy
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
version: "0"
|
63
|
+
type: :runtime
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: sqlite3-ruby
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - "="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 21
|
74
|
+
segments:
|
75
|
+
- 1
|
76
|
+
- 2
|
77
|
+
- 5
|
78
|
+
version: 1.2.5
|
79
|
+
type: :runtime
|
80
|
+
version_requirements: *id004
|
81
|
+
description: Testability Driver test runner
|
82
|
+
email: no@mail.com
|
83
|
+
executables:
|
84
|
+
- tdrunner
|
85
|
+
- sierra
|
86
|
+
extensions: []
|
87
|
+
|
88
|
+
extra_rdoc_files:
|
89
|
+
- readme
|
90
|
+
files:
|
91
|
+
- readme
|
92
|
+
- rakefile
|
93
|
+
- bin/sierra
|
94
|
+
- bin/tdrunner
|
95
|
+
- lib/tdrunner.rb
|
96
|
+
- lib/tdrunner.yml
|
97
|
+
- lib/tdrunner_cucumber.rb
|
98
|
+
- lib/tdrunner_cucumber_runners.rb
|
99
|
+
- lib/tdrunner_file_finder.rb
|
100
|
+
- lib/tdrunner_monitor.rb
|
101
|
+
- lib/tdrunner_profile.rb
|
102
|
+
- lib/tdrunner_test_unit.rb
|
103
|
+
- websi/app/controllers/application_controller.rb
|
104
|
+
- websi/app/controllers/report_editor/test_run/cases_controller.rb
|
105
|
+
- websi/app/controllers/report_editor_controller.rb
|
106
|
+
- websi/app/controllers/websi_controller.rb
|
107
|
+
- websi/app/controllers/websi_script.rb
|
108
|
+
- websi/app/controllers/websi_support.rb
|
109
|
+
- websi/app/helpers/application_helper.rb
|
110
|
+
- websi/app/helpers/report_editor/report_editor_helper.rb
|
111
|
+
- websi/app/helpers/report_editor/test_run/cases_helper.rb
|
112
|
+
- websi/app/helpers/websi_helper.rb
|
113
|
+
- websi/app/views/layouts/application.rhtml
|
114
|
+
- websi/app/views/websi/execution.html.erb
|
115
|
+
- websi/app/views/websi/index.html.erb
|
116
|
+
- websi/app/views/websi/profile.html.erb
|
117
|
+
- websi/app/views/websi/results.html.erb
|
118
|
+
- websi/app/views/websi/tests.html.erb
|
119
|
+
- websi/app/views/websi/weights.html.erb
|
120
|
+
- websi/config/boot.rb
|
121
|
+
- websi/config/database.yml
|
122
|
+
- websi/config/environment.rb
|
123
|
+
- websi/config/environments/development.rb
|
124
|
+
- websi/config/environments/production.rb
|
125
|
+
- websi/config/environments/test.rb
|
126
|
+
- websi/config/initializers/backtrace_silencers.rb
|
127
|
+
- websi/config/initializers/inflections.rb
|
128
|
+
- websi/config/initializers/mime_types.rb
|
129
|
+
- websi/config/initializers/new_rails_defaults.rb
|
130
|
+
- websi/config/initializers/session_store.rb
|
131
|
+
- websi/config/locales/en.yml
|
132
|
+
- websi/config/routes.rb
|
133
|
+
- websi/db/development.sqlite3
|
134
|
+
- websi/db/seeds.rb
|
135
|
+
- websi/doc/README_FOR_APP
|
136
|
+
- websi/log/development.log
|
137
|
+
- websi/log/production.log
|
138
|
+
- websi/log/server.log
|
139
|
+
- websi/log/test.log
|
140
|
+
- websi/public/report_editor/test_run/_index.html
|
141
|
+
- websi/public/robots.txt
|
142
|
+
- websi/public/stylesheets/tdriver_report_style.css
|
143
|
+
- websi/public/tests/config/web_profile.sip
|
144
|
+
- websi/public/tests/example_profile.sip
|
145
|
+
- websi/public/tests/tdrunner.yml
|
146
|
+
- websi/public/tests/websi_parameters.xml
|
147
|
+
- websi/public/tests/web_profile.sip
|
148
|
+
- websi/Rakefile
|
149
|
+
- websi/README
|
150
|
+
- websi/script/about
|
151
|
+
- websi/script/console
|
152
|
+
- websi/script/dbconsole
|
153
|
+
- websi/script/destroy
|
154
|
+
- websi/script/generate
|
155
|
+
- websi/script/performance/benchmarker
|
156
|
+
- websi/script/performance/profiler
|
157
|
+
- websi/script/plugin
|
158
|
+
- websi/script/runner
|
159
|
+
- websi/script/server
|
160
|
+
- websi/test/functional/websi_controller_test.rb
|
161
|
+
- websi/test/performance/browsing_test.rb
|
162
|
+
- websi/test/test_helper.rb
|
163
|
+
- websi/test/unit/helpers/websi_helper_test.rb
|
164
|
+
has_rdoc: true
|
165
|
+
homepage:
|
166
|
+
licenses: []
|
167
|
+
|
168
|
+
post_install_message:
|
169
|
+
rdoc_options: []
|
170
|
+
|
171
|
+
require_paths:
|
172
|
+
- lib
|
173
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
174
|
+
none: false
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
hash: 3
|
179
|
+
segments:
|
180
|
+
- 0
|
181
|
+
version: "0"
|
182
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
|
+
none: false
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
hash: 3
|
188
|
+
segments:
|
189
|
+
- 0
|
190
|
+
version: "0"
|
191
|
+
requirements: []
|
192
|
+
|
193
|
+
rubyforge_project:
|
194
|
+
rubygems_version: 1.3.7
|
195
|
+
signing_key:
|
196
|
+
specification_version: 3
|
197
|
+
summary: Testability Driver test runner
|
198
|
+
test_files: []
|
199
|
+
|