mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[MIRROR] Prepares unit tests for vscode extension update. [MDB IGNORE] (#10596)
* Prepares unit tests for vscode extension update. (#63963) * Prepares unit tests for vscode extension update. Co-authored-by: AnturK <AnturK@users.noreply.github.com>
This commit is contained in:
@@ -117,5 +117,5 @@
|
||||
#undef TEST_ASSERT
|
||||
#undef TEST_ASSERT_EQUAL
|
||||
#undef TEST_ASSERT_NOTEQUAL
|
||||
#undef TEST_FOCUS
|
||||
//#undef TEST_FOCUS - This define is used by vscode unit test extension to pick specific unit tests to run and appended later so needs to be used out of scope here
|
||||
#endif
|
||||
|
||||
@@ -110,11 +110,13 @@ GLOBAL_VAR(test_log)
|
||||
CHECK_TICK
|
||||
|
||||
var/list/tests_to_run = subtypesof(/datum/unit_test)
|
||||
var/list/focused_tests = list()
|
||||
for (var/_test_to_run in tests_to_run)
|
||||
var/datum/unit_test/test_to_run = _test_to_run
|
||||
if (initial(test_to_run.focus))
|
||||
tests_to_run = list(test_to_run)
|
||||
break
|
||||
focused_tests += test_to_run
|
||||
if(length(focused_tests))
|
||||
tests_to_run = focused_tests
|
||||
|
||||
tests_to_run = sortTim(tests_to_run, /proc/cmp_unit_test_priority)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user