-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfailing-testreport.log
176 lines (176 loc) · 6.52 KB
/
failing-testreport.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
=== RUN it_should_support_defer_even_on_fails
--- PASS: it_should_support_defer_even_on_fails (0.01s)
=== RUN it_should_assert_command
+ it_should_assert_command
+ assert_true 'ls /xxxtmp'
+ ls /xxxtmp
ls: /xxxtmp: No such file or directory
+ assert_eq 1 0 'expecting command '\''ls /xxxtmp'\'' to succeed'
+ description='expecting command '\''ls /xxxtmp'\'' to succeed'
+ set +x
[1;37;41mfailed expectation:[m [1;38;40mexpecting command 'ls /xxxtmp' to succeed ('1' == '0') [m
######################################## FAILED TEST: expecting command 'ls /xxxtmp' to succeed ('1' == '0')
+ exit 1
error code: 1
error occured in [1;38;40m./failing-tests.sh:19:it_should_assert_command
./failing-tests.sh:25:it_should_assert_command[m
--- FAIL: it_should_assert_command (0.00s)
=== RUN it_should_assert_command_with_description
+ it_should_assert_command_with_description
+ assert_true 'ls /xxxtmp' 'assert_true with a description'
+ ls /xxxtmp
ls: /xxxtmp: No such file or directory
+ assert_eq 1 0 'assert_true with a description'
+ description='assert_true with a description'
+ set +x
[1;37;41mfailed expectation:[m [1;38;40massert_true with a description ('1' == '0') [m
######################################## FAILED TEST: assert_true with a description ('1' == '0')
+ exit 1
error code: 1
error occured in [1;38;40m./failing-tests.sh:25:it_should_assert_command_with_description[m
--- FAIL: it_should_assert_command_with_description (0.00s)
=== RUN it_should_negate_assert_match_correctly
+ it_should_negate_assert_match_correctly
+ assert_nmatch hallo ll
+ __SPEC_SH_NEGATE=1
+ assert_match hallo ll
+ set +o pipefail
+ printf %s hallo
+ grep -E -m1 -o ll
+ head -n1
+ grep -E ll
ll
+ assert_eq 0 0 'checking '\''hallo'\'' to match /ll/'
+ description='checking '\''hallo'\'' to match /ll/'
+ set +x
[1;37;41mfailed expectation:[m [1;38;40mchecking 'hallo' to match /ll/ ('0' != '0') [m
######################################## FAILED TEST: checking 'hallo' to match /ll/ ('0' != '0')
+ exit 1
error code: 1
error occured in [1;38;40m./failing-tests.sh:30:it_should_negate_assert_match_correctly[m
--- FAIL: it_should_negate_assert_match_correctly (0.01s)
=== RUN it_should_compare_exit_code
+ it_should_compare_exit_code
+ false
+ assert_eq 0 0
+ description=
+ set +x
######################################## PASSED TEST: '0' == '0'
+ assert_eq 0 0 '0 should be 0'
+ description='0 should be 0'
+ set +x
######################################## PASSED TEST: 0 should be 0 ('0' == '0')
+ assert_eq 0 2
+ description=
+ set +x
[1;37;41mfailed expectation:[m [1;38;40m'0' == '2' [m
######################################## FAILED TEST: '0' == '2'
+ exit 1
error code: 1
error occured in [1;38;40m./failing-tests.sh:35:it_should_compare_exit_code[m
--- FAIL: it_should_compare_exit_code (0.01s)
=== RUN it_should_compare_string
+ it_should_compare_string
++ echo hallo
++ tr l x
+ assert_eq haxxo haggo
+ description=
+ set +x
[1;37;41mfailed expectation:[m [1;38;40m'haxxo' == 'haggo' [m
######################################## FAILED TEST: 'haxxo' == 'haggo'
+ exit 1
error code: 1
error occured in [1;38;40m./failing-tests.sh:45:it_should_compare_string
./failing-tests.sh:51:it_should_compare_string[m
--- FAIL: it_should_compare_string (0.00s)
=== RUN it_should_compare_string_with_description
+ it_should_compare_string_with_description
++ echo hallo
++ tr l x
+ assert_eq haxxo haggo 'transforming string should work'
+ description='transforming string should work'
+ set +x
[1;37;41mfailed expectation:[m [1;38;40mtransforming string should work ('haxxo' == 'haggo') [m
######################################## FAILED TEST: transforming string should work ('haxxo' == 'haggo')
+ exit 1
error code: 1
error occured in [1;38;40m./failing-tests.sh:51:it_should_compare_string_with_description[m
--- FAIL: it_should_compare_string_with_description (0.00s)
=== RUN it_should_match_regexp
+ it_should_match_regexp
+ sleep 0.3
+ assert_match aaa:88X09 'aaa:[0-9]{5}'
+ set +o pipefail
+ printf %s aaa:88X09
+ grep -E -m1 -o 'aaa:[0-9]{5}'
+ head -n1
+ grep -E 'aaa:[0-9]{5}'
+ assert_eq 1 0 'checking '\''aaa:88X09'\'' to match /aaa:[0-9]{5}/'
+ description='checking '\''aaa:88X09'\'' to match /aaa:[0-9]{5}/'
+ set +x
[1;37;41mfailed expectation:[m [1;38;40mchecking 'aaa:88X09' to match /aaa:[0-9]{5}/ ('1' == '0') [m
######################################## FAILED TEST: checking 'aaa:88X09' to match /aaa:[0-9]{5}/ ('1' == '0')
+ exit 1
error code: 1
error occured in [1;38;40m./failing-tests.sh:57:it_should_match_regexp[m
--- FAIL: it_should_match_regexp (0.31s)
=== RUN it_should_negate_assert_correctly
+ it_should_negate_assert_correctly
+ assert_false 'ls /' 'this test should fail'
+ __SPEC_SH_NEGATE=1
+ assert_true 'ls /' 'this test should fail'
+ ls /
Applications
Library
Network
System
Users
Volumes
bin
cores
dev
etc
home
installer.failurerequests
net
opt
private
sbin
tmp
usr
var
+ assert_eq 0 0 'this test should fail'
+ description='this test should fail'
+ set +x
[1;37;41mfailed expectation:[m [1;38;40mthis test should fail ('0' != '0') [m
######################################## FAILED TEST: this test should fail ('0' != '0')
+ exit 1
error code: 1
error occured in [1;38;40m./failing-tests.sh:64:it_should_negate_assert_correctly[m
--- FAIL: it_should_negate_assert_correctly (0.00s)
=== RUN it_should_negate_assert_eq_correctly
+ it_should_negate_assert_eq_correctly
+ assert_neq 1 1
+ __SPEC_SH_NEGATE=1
+ assert_eq 1 1
+ description=
+ set +x
[1;37;41mfailed expectation:[m [1;38;40m'1' != '1' [m
######################################## FAILED TEST: '1' != '1'
+ exit 1
error code: 1
error occured in [1;38;40m./failing-tests.sh:69:it_should_negate_assert_eq_correctly[m
--- FAIL: it_should_negate_assert_eq_correctly (0.00s)
=== RUN it_should_reflect_exit_code
+ it_should_reflect_exit_code
+ return 3
+ res=3
+ set +x
error code: 3
error occured in [1;38;40m./failing-tests.sh:74:it_should_reflect_exit_code[m
--- FAIL: it_should_reflect_exit_code (0.00s)
=== RUN after_all
--- PASS: after_all (0.00s)
FAIL
exit status 10
FAIL failing-tests 0.720s