mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user