From f20bd89dc4a7bf14a88b1effcaa1887b29314525 Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Mon, 5 Sep 2022 20:35:53 +0200 Subject: gui: split GUI into Terminal components --- addons/gut/test_collector.gd | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'addons/gut/test_collector.gd') diff --git a/addons/gut/test_collector.gd b/addons/gut/test_collector.gd index c8f5d8b..9fe3199 100644 --- a/addons/gut/test_collector.gd +++ b/addons/gut/test_collector.gd @@ -16,6 +16,14 @@ class Test: # if the test has been marked pending at anypont during # execution. var pending = false + # the line number when the test fails + var line_number = -1 + + func did_pass(): + return passed and !pending and assert_count > 0 + + func did_assert(): + return assert_count > 0 or pending # ------------------------------------------------------------------------------ -- cgit v1.2.3