-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/datum/unit_test/tutorials | ||
|
||
/datum/unit_test/tutorials/Run() | ||
var/datum/tutorial/base_path = /datum/tutorial | ||
for(var/datum/tutorial/tutorial_path as anything in subtypesof(base_path)) | ||
if(initial(tutorial_path.parent_path) == tutorial_path) | ||
continue | ||
|
||
// Make sure these variables are overridden on any subtypes. | ||
TEST_ASSERT_NOTEQUAL(initial(tutorial_path.name), initial(base_path.name), | ||
"[tutorial_path] does not have a name set.") | ||
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (chinook) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (new_varadero) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (runtime) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (whiskey_outpost_v2) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (desert_dam) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (fiorina_sciannex) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (ice_colony_v2) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (corsat) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (almayer) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (kutjevo) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (lv624) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (prison_station_fop) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (sorokyne_strata) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (lv522_chances_claim) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Alternate Tests (515, 1630, lv624) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (bigredv2) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
Check failure on line 11 in code/modules/unit_tests/tutorials.dm GitHub Actions / Unit Tests (shivas_snowball) / run_unit_tests/datum/map_config: /datum/unit_test/tutorials
|
||
TEST_ASSERT_NOTEQUAL(initial(tutorial_path.tutorial_id), initial(base_path.tutorial_id), | ||
"[tutorial_path] does not have a tutorial_id set.") | ||
TEST_ASSERT_NOTEQUAL(initial(tutorial_path.desc), initial(base_path.desc), | ||
"[tutorial_path] does not have a desc set.") | ||
TEST_ASSERT_NOTEQUAL(initial(tutorial_path.icon_state), initial(base_path.icon_state), | ||
"[tutorial_path] does not have an icon_state set.") | ||
|
||
// TODO: Add a test verifying that a basic tutorial can be started and completed. (Requires unit test client handling) |