flipping 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/flipping +8 -6
- data/lib/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: c696b2e23ce8d1bf29c7724410a79418b8f96579
|
4
|
+
data.tar.gz: 948ec90122af122d9b4c335563249c366f728384
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76484f27259386575f05c9c51f39b8b1659002accae68145f9e7543ddabe0a5c1383bc1c0d60f5353eb3f36e71f65b3eb206ae420d26b62d8837e2e2e95df765
|
7
|
+
data.tar.gz: 433fd7c97ac80a2e5e894684d5a2eba00b22aa057c3cb2991a6bc29538b2b49866aa1124a5f6717447350e2525cc1d133284d47d561434285ea0d94da0e137c9
|
data/bin/flipping
CHANGED
@@ -32,7 +32,7 @@ mvn-test-command defaults to "mvn test"'
|
|
32
32
|
|
33
33
|
# Extract failing test values
|
34
34
|
|
35
|
-
test_values = maven_output.scan(/\s\s
|
35
|
+
test_values = maven_output.scan(/\s\s([^\s]+) expected:\<(.+)\> but was:\<(.+)\>\n/)
|
36
36
|
|
37
37
|
if test_values == nil || test_values.length < 1
|
38
38
|
exit 0
|
@@ -40,12 +40,14 @@ mvn-test-command defaults to "mvn test"'
|
|
40
40
|
|
41
41
|
# Extract expected vs actual values
|
42
42
|
|
43
|
+
tests = []
|
43
44
|
expected = []
|
44
45
|
actual = []
|
45
46
|
|
46
47
|
test_values.each do |test_case|
|
47
|
-
e, a = test_case
|
48
|
+
t, e, a = test_case
|
48
49
|
|
50
|
+
tests << t
|
49
51
|
expected << e
|
50
52
|
actual << a
|
51
53
|
end
|
@@ -53,12 +55,12 @@ mvn-test-command defaults to "mvn test"'
|
|
53
55
|
f1 = Tempfile.new 'expected'
|
54
56
|
f2 = Tempfile.new 'actual'
|
55
57
|
|
56
|
-
expected.
|
57
|
-
f1.write "
|
58
|
+
0.upto(expected.length - 1) do |i|
|
59
|
+
f1.write "#{tests[i]} #{expected[i]}\n"
|
58
60
|
end
|
59
61
|
|
60
|
-
actual.
|
61
|
-
f2.write "
|
62
|
+
0.upto(actual.length - 1) do |i|
|
63
|
+
f2.write "#{tests[i]} #{actual[i]}\n"
|
62
64
|
end
|
63
65
|
|
64
66
|
f1.close
|
data/lib/version.rb
CHANGED