tuev 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tuev (0.4.0)
4
+ tuev (0.4.2)
5
5
  selenium-client
6
6
 
7
7
  GEM
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -96,7 +96,7 @@ namespace :tuev do
96
96
  end
97
97
 
98
98
  desc "create static testfiles for qunit tests"
99
- task :create_testfiles => :clean_testfiles do
99
+ task :create_testfiles do
100
100
  files = []
101
101
  Tuev.test_suites.each do |test_suite|
102
102
  files << test_suite.create_test_files
@@ -105,8 +105,4 @@ namespace :tuev do
105
105
  puts "Created the following test files:\n\t#{files.join("\n\t")}"
106
106
  end
107
107
 
108
- desc "delete all statically created testfiles"
109
- task :clean_testfiles do
110
- FileUtils.rm_f(Dir.glob(File.join(Tuev.test_out, "*.html")))
111
- end
112
108
  end
@@ -27,7 +27,7 @@ class Tuev
27
27
  end
28
28
 
29
29
  def self.test_out
30
- config["tests_out"] || "/tmp" #File.expand_path(File.join(Tuev.cwd, "tests", "tuev", "test_files"))
30
+ config["tests_out"] || "/tmp"
31
31
  end
32
32
 
33
33
  def self.selenium_conf
@@ -1,5 +1,5 @@
1
1
  require "selenium/client"
2
- class QunitRunner
2
+ class QunitRunner
3
3
  def initialize(path, selenium_conf)
4
4
  @test_file = path
5
5
  @selenium_conf = selenium_conf
@@ -9,12 +9,12 @@ class QunitRunner
9
9
  begin
10
10
  Net::HTTP.new(@selenium_conf[:host], @selenium_conf[:port]).get2("/")
11
11
  rescue
12
- puts
12
+ puts
13
13
  puts "It seems that there is no selenium server listening on '#{@selenium_conf[:host]}:#{@selenium_conf[:port]}'"
14
- puts
14
+ puts
15
15
  puts "... aborting (try installing the gem 'selenium-server' and execute 'selenium-server' for an easy solution)"
16
- puts
17
- puts
16
+ puts
17
+ puts
18
18
  exit(1)
19
19
  end
20
20
 
@@ -40,7 +40,7 @@ class QunitRunner
40
40
  run_in_browser(browser_id) do |browser|
41
41
  browser.open "file://#{@test_file}"
42
42
  browser.wait_for_page_to_load "60000"
43
- puts "\ntesting: #{@test_file}\n\n"
43
+ puts "\ntesting on #{browser_id}: #{@test_file}\n\n"
44
44
  60.times{ break if (browser.is_element_present("id=qunit-testresult") rescue false); sleep 1 }
45
45
  sleep 1
46
46
  if browser.get_eval("typeof(window.results)") == "undefined"
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tuev}
8
- s.version = "0.4.1"
8
+ s.version = "0.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kesselborn"]
12
- s.date = %q{2011-04-15}
12
+ s.date = %q{2011-05-04}
13
13
  s.default_executable = %q{tuev}
14
14
  s.description = %q{...}
15
15
  s.email = %q{daniel@soundcloud.com}
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tuev
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.1
5
+ version: 0.4.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - kesselborn
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-15 00:00:00 +02:00
13
+ date: 2011-05-04 00:00:00 +02:00
14
14
  default_executable: tuev
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -153,7 +153,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
153
153
  requirements:
154
154
  - - ">="
155
155
  - !ruby/object:Gem::Version
156
- hash: 4161922455615148517
156
+ hash: -2086859141094756435
157
157
  segments:
158
158
  - 0
159
159
  version: "0"