diff --git a/code/unit_tests/unit_test.dm b/code/unit_tests/unit_test.dm index 87a0fef73ee..293d1e9648a 100644 --- a/code/unit_tests/unit_test.dm +++ b/code/unit_tests/unit_test.dm @@ -22,9 +22,19 @@ datum/unit_test/proc/start_test() fail("No test proc.") datum/unit_test/proc/check_result() - fail("No check results") + fail("No check results proc") return 1 + +proc/load_unit_test_changes() + + if(config.generate_asteroid != 1) + log_unit_test("Overiding Configuration option for Asteroid Generation") + config.generate_asteroid = 1 // The default map requires it, the example config doesn't have this enabled. + + + + proc/initialize_unit_tests() log_unit_test("Initializing Unit Testing") diff --git a/code/world.dm b/code/world.dm index 4b39076cd9e..67a2e48c547 100644 --- a/code/world.dm +++ b/code/world.dm @@ -65,10 +65,16 @@ var/global/datum/global_init/init = new () . = ..() #if !UNIT_TEST + sleep_offline = 1 + #elseif + log_unit_test("Unit Tests Enabled. This will destroy the world when testing is complete.") log_unit_test("If you did not intend to enable this please check code/__defines/unit_testing.dm") + + load_unit_test_changes() + #endif // Set up roundstart seed list.