dbrady-tourbus 0.0.8.1 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +11 -0
- data/examples/contact_app/tours/tourbus.yml +1 -1
- data/lib/runner.rb +4 -0
- data/lib/tour.rb +6 -0
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -7,6 +7,8 @@ Flexible and scalable website testing tool.
|
|
7
7
|
* David Brady -- david.brady@leadmediapartners.com
|
8
8
|
* Tim Harper -- tim.harper@leadmediapartners.com
|
9
9
|
* James Britt -- james@neurogami.com
|
10
|
+
* JTZemp -- jt.zemp@leadmediapartners.com
|
11
|
+
|
10
12
|
|
11
13
|
== General Info
|
12
14
|
|
@@ -125,6 +127,13 @@ duplications, oversights, and kludges.
|
|
125
127
|
|
126
128
|
== Hacks, Kludges, Known Issues, and Piles of Steaming Poo
|
127
129
|
|
130
|
+
* If you give a tour a name that is pluralized, it won't work. This is
|
131
|
+
probably a bug worth fixing. The reason for it is that we take file
|
132
|
+
names and "classify" them, and e.g. "ranking_reports" becomes
|
133
|
+
"RankingReport", not "RankingReports". This is an artifact of
|
134
|
+
borrowing from Rails' activesupport libs and should probably be
|
135
|
+
fixed.
|
136
|
+
|
128
137
|
* Mechanize 0.8 doesn't always play well together with TourBus. If you
|
129
138
|
get "connection refused" socket errors, try upgrading to Mechanize
|
130
139
|
0.9.
|
@@ -183,6 +192,8 @@ duplications, oversights, and kludges.
|
|
183
192
|
* James Britt jumped on this and revived it as it was gathering dust.
|
184
193
|
Thanks!
|
185
194
|
|
195
|
+
* JT Zemp added before_tour, after_tour. Thanks!
|
196
|
+
|
186
197
|
== License
|
187
198
|
|
188
199
|
MIT. See the license file.
|
@@ -1,2 +1,2 @@
|
|
1
1
|
---
|
2
|
-
host:
|
2
|
+
host: localhost
|
data/lib/runner.rb
CHANGED
@@ -21,6 +21,8 @@ class Runner
|
|
21
21
|
log("Starting run #{number} of Tour #{tour_name}")
|
22
22
|
tours += 1
|
23
23
|
tour = Tour.make_tour(tour_name,@host,@tours,@number,@runner_id)
|
24
|
+
tour.before_tour
|
25
|
+
|
24
26
|
tour.tests.each do |test|
|
25
27
|
|
26
28
|
next if test_limited_to(test) # test_list && !test_list.empty? && !test_list.include?(test.to_s)
|
@@ -48,6 +50,8 @@ class Runner
|
|
48
50
|
end
|
49
51
|
log("Finished run #{number} of Tour #{tour_name}")
|
50
52
|
end
|
53
|
+
|
54
|
+
tour.after_tour
|
51
55
|
end
|
52
56
|
log("Finished #{@runner_type} run #{num}/#{number}")
|
53
57
|
end
|
data/lib/tour.rb
CHANGED
@@ -16,6 +16,12 @@ class Tour
|
|
16
16
|
@tour_type = self.send(:class).to_s
|
17
17
|
end
|
18
18
|
|
19
|
+
# before_tour runs once per tour, before any tests get run
|
20
|
+
def before_tour; end
|
21
|
+
|
22
|
+
# after_tour runs once per tour, after all the tests have run
|
23
|
+
def after_tour; end
|
24
|
+
|
19
25
|
def setup
|
20
26
|
end
|
21
27
|
|