zeus-parallel_tests 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zeus/parallel_tests/rails.rb +20 -0
- data/lib/zeus/parallel_tests/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 563e333c1e8ec05f14dbd22e6ebac0cca8b7b8e3
|
4
|
+
data.tar.gz: 899064490d67a68f69c36a9d6565ddbf1cdf6513
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccba614f245fda8054c6c58a343a987c0ffaca47ea7a4dea31ee68de8fd9667e60fb93af3e6f3d11351c633908410819f2f7aca0424d8abb01b5b845f480c7df
|
7
|
+
data.tar.gz: 8c657db277dd61f3c9f56ffecc5c792ee68e8853a11e5e2f80c3304a0d6c84b0f9b84272629576dc6fd9e13f26d808b1f4bc267078ba5ffa4ee6036a2b06ed1c
|
@@ -1,6 +1,22 @@
|
|
1
1
|
require_relative '../parallel_tests'
|
2
2
|
require_relative 'worker'
|
3
3
|
|
4
|
+
# Patches required for parallel_tests
|
5
|
+
|
6
|
+
module ParallelTests
|
7
|
+
module Tasks
|
8
|
+
class << self
|
9
|
+
def rails_env
|
10
|
+
# parallel_tests sets this to 'test' by default - this must be
|
11
|
+
# overridden because Zeus does not support $RAILS_ENV being set
|
12
|
+
nil
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
# End of patches for parallel_test
|
19
|
+
|
4
20
|
module Zeus
|
5
21
|
module ParallelTests
|
6
22
|
class Rails < ::Zeus::Rails
|
@@ -13,6 +29,10 @@ module Zeus
|
|
13
29
|
end
|
14
30
|
|
15
31
|
def parallel_rspec
|
32
|
+
if ENV.key?('RAILS_ENV')
|
33
|
+
puts "Warning: Deleting RAILS_ENV (which is `#{ENV['RAILS_ENV']}` as Zeus will complain about it."
|
34
|
+
ENV.delete('RAILS_ENV')
|
35
|
+
end
|
16
36
|
argv = ARGV.dup
|
17
37
|
argv.delete('--color') # remove this argument from list
|
18
38
|
argv.delete('--colour') # because it was causing bug #14
|