test(desktop): implement phased unit testing suite#2
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I am doing\nI am establishing a custom, lightweight unit testing framework for the LÖVE-based Desktop Lua client.\n\n## What I have done\n- Refactored Project and Task Managers: Decoupled constructor-level requires, allowing a mock HTTP client override field.\n- Added Decoupling Mocks: Created \mocks.lua\ supplying mock HTTP client factories with request capturing and outcome status configuration.\n- Wrote File Manager and Caching tests: Created \ est_file_manager.lua\ validating flat-file JSON persistence storage.\n- Wrote API Manager tests: Created \ est_project_manager.lua\ validating REST queries and local database serialization caches.\n- Wrote Auth & Socket check tests: Created \ est_auth_manager.lua\ and \ est_connectivity_check.lua\ checking session token operations and socket availability checks.\n- Integrated inside LÖVE: Updated \main.lua\ to intercept a --test\ command-line parameter, executing all tests in the headless CLI runner during startup.\n- Documented in README: Added a detailed Testing Strategy section and LÖVE run instructions to \README.md.