From 7ea03fcebc73f5541df88b3e3e26cac670df8309 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 2 Dec 2020 08:51:28 +0100 Subject: [PATCH] [MIRROR] Make unit tests visible to linter and IDE (#2006) * Make unit tests visible to linter and IDE (#55270) * Make unit tests visible to linter and IDE Co-authored-by: Tad Hardesty --- code/__HELPERS/_logging.dm | 2 +- code/modules/unit_tests/_unit_tests.dm | 2 +- code/modules/unit_tests/reagent_mod_expose.dm | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/__HELPERS/_logging.dm b/code/__HELPERS/_logging.dm index 3cf146e0719..0d872e46678 100644 --- a/code/__HELPERS/_logging.dm +++ b/code/__HELPERS/_logging.dm @@ -29,7 +29,7 @@ #define testing(msg) #endif -#ifdef UNIT_TESTS +#if defined(UNIT_TESTS) || defined(SPACEMAN_DMM) /proc/log_test(text) WRITE_LOG(GLOB.test_log, text) SEND_TEXT(world.log, text) diff --git a/code/modules/unit_tests/_unit_tests.dm b/code/modules/unit_tests/_unit_tests.dm index 4172aed5d9d..091d2064d27 100644 --- a/code/modules/unit_tests/_unit_tests.dm +++ b/code/modules/unit_tests/_unit_tests.dm @@ -1,7 +1,7 @@ //include unit test files in this module in this ifdef //Keep this sorted alphabetically -#ifdef UNIT_TESTS +#if defined(UNIT_TESTS) || defined(SPACEMAN_DMM) /// Asserts that a condition is true /// If the condition is not true, fails the test diff --git a/code/modules/unit_tests/reagent_mod_expose.dm b/code/modules/unit_tests/reagent_mod_expose.dm index 7f1c265f6f5..3fe02e044d4 100644 --- a/code/modules/unit_tests/reagent_mod_expose.dm +++ b/code/modules/unit_tests/reagent_mod_expose.dm @@ -56,3 +56,4 @@ /datum/unit_test/reagent_mob_expose/Destroy() SSmobs.ignite() + return ..()