Adds a helper for running unit tests locally (#24269)

* adds a helper for running unit tests locally

* warning error

* okay it should be ready

* this shouldnt be here
This commit is contained in:
Contrabang
2024-02-27 18:29:24 -05:00
committed by GitHub
parent f4447fc133
commit 491407cea8
2 changed files with 19 additions and 2 deletions
+9
View File
@@ -3,7 +3,11 @@
// intentionally (if there's a lot of legitimate map errors), or accidentally if
// a test condition is written incorrectly and starts e.g. logging failures for
// every single tile.
#ifdef LOCAL_UNIT_TESTS
#define MAX_MAP_TEST_FAILURE_COUNT 100
#else
#define MAX_MAP_TEST_FAILURE_COUNT 20
#endif
/datum/test_runner
var/datum/unit_test/current_test
@@ -76,6 +80,11 @@
/datum/test_runner/proc/Finalize(emit_failures = FALSE)
var/time = world.timeofday
set waitfor = FALSE
#ifdef LOCAL_UNIT_TESTS
emit_failures = TRUE
#endif
var/list/fail_reasons
if(GLOB)
if(GLOB.total_runtimes != 0)