dbrady-tourbus 0.0.8 → 0.0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -6,7 +6,7 @@ Flexible and scalable website testing tool.
6
6
 
7
7
  * David Brady -- david.brady@leadmediapartners.com
8
8
  * Tim Harper -- tim.harper@leadmediapartners.com
9
- * James Britt -- http://github.com/jamesbritt
9
+ * James Britt -- james@neurogami.com
10
10
 
11
11
  == General Info
12
12
 
data/bin/tourbus CHANGED
@@ -39,7 +39,7 @@ if opts[:list]
39
39
  puts Tour.tests(tour).map {|test| " #{test}"}
40
40
  end
41
41
  else
42
- opts[:tests] = opts[:tests].split(',')
42
+ opts[:tests] = opts[:tests].split(',') if opts[:tests]
43
43
 
44
44
  TourBus.new(opts[:host], opts[:concurrency], opts[:number], tours, opts[:tests]).run
45
45
  end
@@ -1,2 +1,2 @@
1
1
  ---
2
- host: localhost:4567
2
+ host: ffca.local
data/lib/runner.rb CHANGED
@@ -11,8 +11,8 @@ class Runner
11
11
  end
12
12
 
13
13
  # Dispatches to subclass run method
14
- def run_tours test_list = []
15
- log "Filtering on tests #{test_list.join(', ')}" unless test_list.to_a.empty?
14
+ def run_tours
15
+ log "Filtering on tests #{@test_list.join(', ')}" unless @test_list.to_a.empty?
16
16
  tours,tests,passes,fails,errors = 0,0,0,0,0
17
17
  1.upto(number) do |num|
18
18
  log("Starting #{@runner_type} run #{num}/#{number}")
@@ -23,7 +23,7 @@ class Runner
23
23
  tour = Tour.make_tour(tour_name,@host,@tours,@number,@runner_id)
24
24
  tour.tests.each do |test|
25
25
 
26
- next if !test_list.empty? && !test_list.include?(test.to_s)
26
+ next if test_limited_to(test) # test_list && !test_list.empty? && !test_list.include?(test.to_s)
27
27
 
28
28
  begin
29
29
  tests += 1
@@ -60,5 +60,9 @@ class Runner
60
60
  def log(message)
61
61
  puts "#{Time.now.strftime('%F %H:%M:%S')} Runner ##{@runner_id}: #{message}"
62
62
  end
63
+
64
+ def test_limited_to(test_name)
65
+ @test_list && !@test_list.empty? && !@test_list.include?(test_name.to_s)
66
+ end
63
67
  end
64
68
 
data/lib/tour_bus.rb CHANGED
@@ -52,7 +52,7 @@ class TourBus < Monitor
52
52
  runs,tests,passes,fails,errors,start = 0,0,0,0,0,Time.now.to_f
53
53
  bm = Benchmark.measure do
54
54
  runner = Runner.new(@host, @tours, @number, runner_id, @test_list)
55
- runs,tests,passes,fails,errors = runner.run_tours(@test_list)
55
+ runs,tests,passes,fails,errors = runner.run_tours
56
56
  update_stats runs, tests, passes, fails, errors
57
57
  end
58
58
  log "Runner Finished!"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbrady-tourbus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Brady
@@ -90,7 +90,7 @@ files:
90
90
  - README.rdoc
91
91
  - MIT-LICENSE
92
92
  has_rdoc: true
93
- homepage: http://github.com/jamesbritt/tourbus/
93
+ homepage: http://github.com/dbrady/tourbus/
94
94
  post_install_message:
95
95
  rdoc_options:
96
96
  - --line-numbers