protractor-rails 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/protractor/rails/version.rb +1 -1
- data/lib/tasks/protractor.rake +5 -4
- 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: c3a3d29e66944c0d2d9f08fec918803f622f13da
|
4
|
+
data.tar.gz: 627e26fb5bba910b72790f67de0869a27d4ff226
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09887523ecdc15f318ba924a9ebb57c3d5c507c61321c10440c337ade7ebc1f3805558bde0ef6d9c905e3e191711d238921cd0470078a788e0d831e5ac82e8b9
|
7
|
+
data.tar.gz: 891e059fd42a49bf1d179915ca9440f7adaed7fa9ff566ff74b26a88114551b94787ee3c12860aa907cf9a9d2de529f4654be02552e82edbcc5ce4f864a56a74
|
data/Gemfile.lock
CHANGED
data/lib/tasks/protractor.rake
CHANGED
@@ -52,6 +52,7 @@ namespace :protractor do |args|
|
|
52
52
|
write_log "Waiting for servers to finish starting up...."
|
53
53
|
sleep Protractor.configuration.startup_timeout
|
54
54
|
success = system "protractor #{options} #{Protractor.configuration.config_path}/#{Protractor.configuration.config_file}"
|
55
|
+
write_log "Protractor has failed to run test with options '#{options}'".red.bold unless success
|
55
56
|
Process.kill 'TERM', webdriver_pid
|
56
57
|
Process.kill 'TERM', rails_server_pid
|
57
58
|
Process.wait webdriver_pid
|
@@ -62,7 +63,7 @@ namespace :protractor do |args|
|
|
62
63
|
puts e
|
63
64
|
ensure
|
64
65
|
Rake::Task["protractor:kill"].invoke
|
65
|
-
exit success
|
66
|
+
exit unless success
|
66
67
|
end
|
67
68
|
end
|
68
69
|
|
@@ -77,17 +78,17 @@ namespace :protractor do |args|
|
|
77
78
|
|
78
79
|
task :kill_selenium_processes do
|
79
80
|
write_log "kill left over selenium processes...".yellow
|
80
|
-
system "ps aux | grep -ie 'protractor\/selenium' | awk '{print $2}' | xargs kill -9"
|
81
|
+
system "ps aux | grep -ie 'protractor\/selenium' | grep -v grep | awk '{print $2}' | xargs kill -9"
|
81
82
|
end
|
82
83
|
|
83
84
|
task :kill_webdriver do
|
84
85
|
write_log "kill webdriver server...".yellow
|
85
|
-
system "ps aux | grep -ie '\-Dwebdriver' | awk '{print $2}' | xargs kill -9"
|
86
|
+
system "ps aux | grep -ie '\-Dwebdriver' | grep -v grep | awk '{print $2}' | xargs kill -9"
|
86
87
|
end
|
87
88
|
|
88
89
|
task :kill_rails do
|
89
90
|
write_log "kill protractor rails tests server...".yellow
|
90
|
-
system "ps aux | grep -ie 'rails s -e test -P tmp/pids/protractor_test_server.pid --port=#{Protractor.configuration.port}' | awk '{print $2}' | xargs kill -9"
|
91
|
+
system "ps aux | grep -ie 'rails s -e test -P tmp/pids/protractor_test_server.pid --port=#{Protractor.configuration.port}' | grep -v grep | awk '{print $2}' | xargs kill -9"
|
91
92
|
end
|
92
93
|
|
93
94
|
task :rails do
|
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.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyrone Wilson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|