Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensures that all Unit Tests are ticked in
_unit_tests.dm
(#76404) (…
…#22176) * Ensures that all Unit Tests are ticked in `_unit_tests.dm` (#76404) ## About The Pull Request Ensures we don't get a repeat of #76345 (unit test that wasn't ticked in the `_unit_tests.dm` file, fixed in 596ca8b6d4cc49cd69fc104b53b7f4973497a2e5). Basically, we leverage the code that was already being used in the DME Validator but then expand it a bunch via using JSON Schemas that correspond to the type of scan we want to run. Even though sorting unit tests alphabetically is a bit different than sorting the tgstation DME, it's good to leverage the already existing framework rather than create a copy-pasta "lesser" code runner. This went through strenous testing on my end, so let me know if anything seems off. While in the area, I added some other niceties that I've found work really well in GitHub Runners environments, as well as local testing in case you really like doing that before you make a PR for some reason. ## Why It's Good For The Game ![image](https://github.com/tgstation/tgstation/assets/34697715/307161d7-cef1-418b-9a51-2a7bf6c5b678) This is what it looks like pre-596ca8b6d4cc49cd69fc104b53b7f4973497a2e5 (this is now merged, so it will pass CI) De-hardcodes some stuff and allows for some neater flexibility, less cringe unit tests being coded and not being ticked in the file, etc. etc. ## Changelog Nothing for players to care about. Let me know if you have a better idea than the schemas, I couldn't think of one that could be really extensible and flexible in the same way this is. # Conflicts: # code/modules/unit_tests/_unit_tests.dm # tools/validate_dme.py * Modular tick enforcement * Update tgstation_dme.json * Update tgstation_dme.json * Update tgstation.dme * Update unit_tests.json * Modular tick enforcement * oop * Update ticked_file_enforcement.py I cannot python what the heck * Update ticked_file_enforcement.py * Update ticked_file_enforcement.py * Update ticked_file_enforcement.py * Update ticked_file_enforcement.py ugh * Update ticked_file_enforcement.py * You have got to be kidding me..... * Update _unit_tests.dm * Update _unit_tests.dm * Update _unit_tests.dm * Update unit_tests.json * Update unit_tests.json * Update _unit_tests.dm * Update unit_tests.json * Update _unit_tests.dm * Update _unit_tests.dm * Update * Update unit_tests.json * Update ci_suite.yml * Update ci_suite.yml * Update ci_suite.yml * Update _unit_tests.dm * Update * Ughdate * Ughdate * Ughdate * Debug time * Update ticked_file_enforcement.py * Update _unit_tests.dm * Update tgstation.dme * Revert "Update tgstation.dme" This reverts commit 4e82ad6b0be937d26ac36884f2d00d6718d72029. * Update _unit_tests.dm * What * Hmm * Update unit_tests.json * Ugh * Update ticked_file_enforcement.py * This is so jank * hnnng * Update ticked_file_enforcement.py * what. do. you. want. * Update ticked_file_enforcement.py * Now let's see if it works * Revert "Now let's see if it works" This reverts commit 915c40d99da8b7a869db1205e48e4f7178da9b8e. --------- Co-authored-by: san7890 <[email protected]> Co-authored-by: GoldenAlpharex <[email protected]> Co-authored-by: Bloop <[email protected]>
- Loading branch information