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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 512647ab230e25dd0fcb5a64b4e74dd43ed5355d
4
- data.tar.gz: f55f32aea39a657b1dc022aec93bd1cddbe6bd1b
3
+ metadata.gz: a3dd21c56ec0893e7b90b70870c12e2a9d95889b
4
+ data.tar.gz: 056c6976d25feffecdddc4c21fff0c21d21c4806
5
5
  SHA512:
6
- metadata.gz: edfb15bcaef41e4dac3ad4573348ae3f91aaa7345e92b961b17b108044fd2a5b1b42405ccae6d1d4c3ffc8a7745a9c893fc594f25d6f3e831a1a708ea211e70a
7
- data.tar.gz: f5c380e9b52427b003a22e9fa52c6c947137b8881ebb10bafa815bc365eea09c8ef5a0389104e0a25af09e0b679e7482820fb3b206fb48a1df891ed877e6610a
6
+ metadata.gz: 520ef420bbc2c2b52c98ebd151090a389cdd896d08544ba2a91b8b4d4757d92f6c5a93762210f7f5aa70bc26427c06c16e69f956b557c06d5792a8d0a56627ca
7
+ data.tar.gz: a866c425de67003943f33072e3a1b6dfa4223c9b12c52228d704a0de6858ebdf929a94dd06ff41f40a6ab7f599a11d6164d151fa0e907dcbb997ba95dbf4964f
@@ -1,27 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- protractor-rails (0.0.18)
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.5)
12
- actionview (= 4.2.5)
13
- activesupport (= 4.2.5)
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.5)
19
- activesupport (= 4.2.5)
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.5)
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.1)
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.2)
50
+ rails-html-sanitizer (1.0.3)
51
51
  loofah (~> 2.0)
52
- railties (4.2.5)
53
- actionpack (= 4.2.5)
54
- activesupport (= 4.2.5)
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
@@ -1,5 +1,5 @@
1
1
  module Protractor
2
2
  module Rails
3
- VERSION = "0.0.18"
3
+ VERSION = "0.0.19"
4
4
  end
5
5
  end
@@ -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
- success = system "protractor #{options} #{Protractor.configuration.config_path}/#{Protractor.configuration.config_file}"
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.18
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-02-12 00:00:00.000000000 Z
11
+ date: 2016-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler