baretest-vows 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/baretest/formatter/vows.rb +16 -10
- metadata +4 -4
@@ -9,13 +9,15 @@ module BareTest
|
|
9
9
|
:success => '✓',
|
10
10
|
:skipped => '-',
|
11
11
|
:pending => '-',
|
12
|
-
:failure => '✗'
|
12
|
+
:failure => '✗',
|
13
|
+
:error => '✗'
|
13
14
|
}
|
14
15
|
|
15
16
|
Labels = {
|
16
17
|
:success => "\e[1;32mOK\e[0m",
|
17
18
|
:pending => "\e[1;96mPending\e[0m",
|
18
19
|
:failure => "\e[1;31mBroken\e[0m",
|
20
|
+
:error => "\e[1;31mBroken\e[0m"
|
19
21
|
}
|
20
22
|
|
21
23
|
Colors = {
|
@@ -23,6 +25,7 @@ module BareTest
|
|
23
25
|
:skipped => "\e[30m",
|
24
26
|
:pending => "\e[36m",
|
25
27
|
:failure => "\e[31m",
|
28
|
+
:error => "\e[31m",
|
26
29
|
:normal => "\e[0m"
|
27
30
|
}
|
28
31
|
|
@@ -50,8 +53,8 @@ module BareTest
|
|
50
53
|
when :error
|
51
54
|
backtrace = backtrace(status).join("\n")
|
52
55
|
|
53
|
-
puts indent(test
|
54
|
-
puts indent(test
|
56
|
+
puts indent(test) + '» ' + stylize(status.code, status.reason)
|
57
|
+
puts indent(test) + '» ' + stylize(status.code, backtrace)
|
55
58
|
end
|
56
59
|
end
|
57
60
|
|
@@ -63,13 +66,16 @@ module BareTest
|
|
63
66
|
:failure,
|
64
67
|
:error)
|
65
68
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
"
|
70
|
-
" • \e[1m#{
|
71
|
-
" • \e[1m#{
|
72
|
-
" \e[
|
69
|
+
status = Symbols[status_collection.code] +
|
70
|
+
' ' + Labels[status_collection.code]
|
71
|
+
status += " » \e[1m#{success}\e[0m honored" if success > 0
|
72
|
+
status += " • \e[1m#{pending}\e[0m pending" if pending > 0
|
73
|
+
status += " • \e[1m#{skipped}\e[0m skipped" if skipped > 0
|
74
|
+
status += " • \e[1m#{failure}\e[0m failed" if failure > 0
|
75
|
+
status += " • \e[1m#{error}\e[0m broken" if error > 0
|
76
|
+
status += " \e[30m(#{elapsed}s)\e[0m"
|
77
|
+
|
78
|
+
puts status
|
73
79
|
end
|
74
80
|
end
|
75
81
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: baretest-vows
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 2
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Danny Tatom
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: -992533949
|
30
30
|
segments:
|
31
31
|
- 0
|
32
32
|
- 5
|