snapdragon 0.1.2 → 0.1.3
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27cb554944cd311cbc4ab1adfe78e93163c3565a
|
4
|
+
data.tar.gz: 3987c088e89ee869591d667db9d3440daf085e9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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;
|
data/lib/snapdragon/version.rb
CHANGED