snapdragon 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12b80206b51f0e8cf95cc1ad2a15c9616a44b7fd
4
- data.tar.gz: eadce0bb49b9cb9893dfd70ed39946074990425c
3
+ metadata.gz: 27cb554944cd311cbc4ab1adfe78e93163c3565a
4
+ data.tar.gz: 3987c088e89ee869591d667db9d3440daf085e9c
5
5
  SHA512:
6
- metadata.gz: dbdf8c80bf54b8bdd3c2a8c64f01c093d60f80245f787e0589384b6b364c8c47a7f25945c5168ff38274ef5ed67266e15ebbca6266c1ed2b8d8d5b24c7da9eec
7
- data.tar.gz: df79660a917f07f1d91852847401cc607e1cd401ab995baa43705ad12afee74d301eee048db76437215b9bfb8b086b07cb7eb12389dc59c3295a041533e37ce7
6
+ metadata.gz: d7231b197e606c5192231b1ab9180cd496f25e96d67ab31101b043b3922885a5861235a061bbba6eafc6bcfd72de23186d3a7d6faf0d351f27e66b94da00c6c3
7
+ data.tar.gz: 589cc5e56b9871f11da738bdcf89f1a99b9b4e80fbb5e5e8aa1ce540ec37740c87c6397b2535adccf542f519ffa098f3565a25d19b45a05f505fe5f3514a69be
@@ -7,6 +7,12 @@ require_relative './suite'
7
7
  require_relative './spec_file'
8
8
  require_relative './spec_directory'
9
9
 
10
+ # Set the default_wait_time to something reasonable for the entire length of
11
+ # the test suite to run. This should probably eventually be something
12
+ # configurable because these could break for people with long running test
13
+ # suites.
14
+ Capybara.default_wait_time = 120 # 2 mins
15
+
10
16
  module Snapdragon
11
17
  class CliApplication
12
18
  def initialize(arguements)
@@ -65,8 +71,10 @@ module Snapdragon
65
71
  session = Capybara::Session.new(:poltergeist, Snapdragon::WebApplication.new(nil, @suite))
66
72
  if @suite.filtered?
67
73
  session.visit("/run?spec=#{@suite.spec_query_param}")
74
+ session.find("#testscomplete")
68
75
  else
69
76
  session.visit("/run")
77
+ session.find("#testscomplete")
70
78
  end
71
79
  end
72
80
  end
@@ -83,6 +83,7 @@ jasmine.ConsoleReporter = function() {
83
83
  }
84
84
 
85
85
  onComplete();
86
+ signalCapybaraTestsFinishedRunning();
86
87
  };
87
88
 
88
89
  // "reportSpecResults",
@@ -150,6 +151,12 @@ jasmine.ConsoleReporter = function() {
150
151
  print(indent(colored("yellow", spec.getFullName()), 2));
151
152
  printNewline();
152
153
  }
154
+
155
+ function signalCapybaraTestsFinishedRunning() {
156
+ var div = document.createElement('div');
157
+ div.id = 'testscomplete';
158
+ document.body.appendChild(div);
159
+ }
153
160
  }
154
161
 
155
162
  return ConsoleReporter;
@@ -1,3 +1,3 @@
1
1
  module Snapdragon
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapdragon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew De Ponte