Skip to content

Commit c1b3ec4

Browse files
committed
Вывод упавшей функции в тестах
1 parent 21a4ab2 commit c1b3ec4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/java/com/annimon/ownlang/parser/ProgramsTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ public void testOutput() throws IOException {
127127
@Override
128128
public void visit(FunctionDefineStatement s) {
129129
if (s.name.startsWith("test")) {
130-
Functions.get(s.name).execute();
130+
try {
131+
Functions.get(s.name).execute();
132+
} catch (AssertionError err) {
133+
throw new AssertionError(s.name + ": " + err.getMessage(), err);
134+
}
131135
}
132136
}
133137
};

0 commit comments

Comments
 (0)