protractor-rails 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +12 -12
- data/README.md +5 -0
- data/lib/protractor/rails/version.rb +1 -1
- data/lib/tasks/protractor.rake +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3dd21c56ec0893e7b90b70870c12e2a9d95889b
|
4
|
+
data.tar.gz: 056c6976d25feffecdddc4c21fff0c21d21c4806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 520ef420bbc2c2b52c98ebd151090a389cdd896d08544ba2a91b8b4d4757d92f6c5a93762210f7f5aa70bc26427c06c16e69f956b557c06d5792a8d0a56627ca
|
7
|
+
data.tar.gz: a866c425de67003943f33072e3a1b6dfa4223c9b12c52228d704a0de6858ebdf929a94dd06ff41f40a6ab7f599a11d6164d151fa0e907dcbb997ba95dbf4964f
|
data/Gemfile.lock
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
protractor-rails (0.0.
|
4
|
+
protractor-rails (0.0.19)
|
5
5
|
colorize
|
6
6
|
railties
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionpack (4.2.
|
12
|
-
actionview (= 4.2.
|
13
|
-
activesupport (= 4.2.
|
11
|
+
actionpack (4.2.6)
|
12
|
+
actionview (= 4.2.6)
|
13
|
+
activesupport (= 4.2.6)
|
14
14
|
rack (~> 1.6)
|
15
15
|
rack-test (~> 0.6.2)
|
16
16
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
17
17
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
18
|
-
actionview (4.2.
|
19
|
-
activesupport (= 4.2.
|
18
|
+
actionview (4.2.6)
|
19
|
+
activesupport (= 4.2.6)
|
20
20
|
builder (~> 3.1)
|
21
21
|
erubis (~> 2.7.0)
|
22
22
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
23
23
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
24
|
-
activesupport (4.2.
|
24
|
+
activesupport (4.2.6)
|
25
25
|
i18n (~> 0.7)
|
26
26
|
json (~> 1.7, >= 1.7.7)
|
27
27
|
minitest (~> 5.1)
|
@@ -36,7 +36,7 @@ GEM
|
|
36
36
|
nokogiri (>= 1.5.9)
|
37
37
|
mini_portile2 (2.0.0)
|
38
38
|
minitest (5.8.4)
|
39
|
-
nokogiri (1.6.7.
|
39
|
+
nokogiri (1.6.7.2)
|
40
40
|
mini_portile2 (~> 2.0.0.rc2)
|
41
41
|
rack (1.6.4)
|
42
42
|
rack-test (0.6.3)
|
@@ -47,11 +47,11 @@ GEM
|
|
47
47
|
activesupport (>= 4.2.0.beta, < 5.0)
|
48
48
|
nokogiri (~> 1.6.0)
|
49
49
|
rails-deprecated_sanitizer (>= 1.0.1)
|
50
|
-
rails-html-sanitizer (1.0.
|
50
|
+
rails-html-sanitizer (1.0.3)
|
51
51
|
loofah (~> 2.0)
|
52
|
-
railties (4.2.
|
53
|
-
actionpack (= 4.2.
|
54
|
-
activesupport (= 4.2.
|
52
|
+
railties (4.2.6)
|
53
|
+
actionpack (= 4.2.6)
|
54
|
+
activesupport (= 4.2.6)
|
55
55
|
rake (>= 0.8.7)
|
56
56
|
thor (>= 0.18.1, < 2.0)
|
57
57
|
rake (10.1.1)
|
data/README.md
CHANGED
@@ -112,6 +112,11 @@ You can run specific test suites by passing in options to the rake task as per t
|
|
112
112
|
|
113
113
|
**NOTE You must have the -- first otherwise rake will think the arguments are for rake instead of the task**
|
114
114
|
|
115
|
+
### Run in debug mode
|
116
|
+
|
117
|
+
$ DEBUG=true rake protractor:spec
|
118
|
+
|
119
|
+
|
115
120
|
### Run a specific spec file
|
116
121
|
|
117
122
|
$ rake protractor:spec -- --specs spec-filename
|
data/lib/tasks/protractor.rake
CHANGED
@@ -37,10 +37,15 @@ namespace :protractor do |args|
|
|
37
37
|
opts.on("#{suiteKey} {suite}", 'Test suite name', String) do |suite|
|
38
38
|
options = options + "#{suiteKey} #{suite}"
|
39
39
|
end
|
40
|
+
|
41
|
+
opts.on("--debug", String) do
|
42
|
+
options = options + "debug"
|
43
|
+
end
|
40
44
|
end.parse!
|
41
45
|
|
42
46
|
options += "--specs #{ENV['SPECS']}" if ENV['SPECS'].present?
|
43
47
|
options += "--suite #{ENV['SUITE']}" if ENV['SUITE'].present?
|
48
|
+
options += "debug" if ENV['DEBUG'].present?
|
44
49
|
|
45
50
|
webdriver_pid = fork do
|
46
51
|
[$stdout,$stderr].each { |fh| fh.reopen File.open("/dev/null","w") } if ENV['nolog'].present? || ENV['nolog_selenium'].present?
|
@@ -54,7 +59,9 @@ namespace :protractor do |args|
|
|
54
59
|
write_log "Rails Server PID: #{rails_server_pid}".yellow.bold
|
55
60
|
write_log "Waiting for servers to finish starting up...."
|
56
61
|
sleep Protractor.configuration.startup_timeout
|
57
|
-
|
62
|
+
cmd = "protractor #{options} #{Protractor.configuration.config_path}/#{Protractor.configuration.config_file}"
|
63
|
+
write_log cmd
|
64
|
+
success = system cmd
|
58
65
|
write_log "Protractor has failed to run test with options '#{options}'".red.bold unless success
|
59
66
|
Process.kill 'TERM', webdriver_pid
|
60
67
|
Process.kill 'TERM', rails_server_pid
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protractor-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyrone Wilson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|