Skip to content

Commit f34dc30

Browse files
authored
Improve error reporting in test framework
1 parent eda036f commit f34dc30

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/utils/testframework.sk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ effect:
210210
then:
211211
if parse tags does not contain "5":
212212
sendTestFailMessage "Test ""%{_test}%"" with condition '%{_label}%: %{_raw}%' failed", expr-1
213-
TestTracker.testFailed(expr-1, current script)
214-
add "%expr-1%" to {-test.sk::errors::%{_script}%.%{_test}%::*}
213+
TestTracker.testFailed("Test ""%{_test}%"" with condition '%{_label}%: %{_raw}%' failed%expr-1%", current script)
214+
add "Test ""%{_test}%"" with condition '%{_label}%: %{_raw}%' failed%expr-1%" to {-test.sk::errors::%{_script}%.%{_test}%::*}
215215
if parse tags contains "3":
216216
delay effect
217217

@@ -223,8 +223,8 @@ effect (3:|4:(no|without) (halt[ing]|fail[(-| )](safe|fast)|abort[ing])) fail te
223223
set {_script} to event.getEventValue("script")
224224
if parse tags does not contain "5":
225225
sendTestFailMessage "Test ""%{_test}%"" failed", expr-1
226-
TestTracker.testFailed(expr-1, current script)
227-
add "%expr-1%" to {-test.sk::errors::%{_script}%.%{_test}%::*}
226+
TestTracker.testFailed("Test ""%{_test}%"" with condition '%{_label}%: %{_raw}%' failed%expr-1%", current script)
227+
add "Test ""%{_test}%"" with condition '%{_label}%: %{_raw}%' failed%expr-1%" to {-test.sk::errors::%{_script}%.%{_test}%::*}
228228
if parse tags contains "3":
229229
delay effect
230230

0 commit comments

Comments
 (0)