########################################################################################## LOC-15: Testing Mode ########################################################################################## Issue Type: New Feature ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2018-05-20 09:55:40) Project: LocalChat (LOC) Reported By: btasker Assigned To: btasker Components: - Server Targeted for fix in version: - V0.0.2 Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== We're approaching the point of Minimum Viable Product. Before the release of V0.0.2 can happen, need to do some fairly thorough testing. Currently, it's hard to test that the database contains what we think it does - as it's in memory, short of a memory dump, you cannot access it from another process. This FR is to implement a testing mode, including some safety precautions. The server should accept a CLI argument --testing-mode-enable. When this is present, the following should happen - Database should be created on disk - Whenever a user joins a room, a warning that the system is in testing mode should be pushed into the room With the database on disk, test scripts will then be able to poll the database to verify that data's being written as expected. ----------------------------------------------------------------------------------------- Issue Relations ================ - blocks LOC-24: Build Tests ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2018-05-20 09:55:33 btasker ----------------------------------------------------------------------------------------- The testing database will be written out into the current working directory with a filename of localchat-testing.db. As this is now implemented, marking as complete. ----------------------------------------------------------------------------------------- 2018-05-20 09:55:40 ----------------------------------------------------------------------------------------- btasker changed status from 'Open' to 'Resolved' ----------------------------------------------------------------------------------------- 2018-05-20 09:55:40 ----------------------------------------------------------------------------------------- btasker added 'Done' to resolution ----------------------------------------------------------------------------------------- 2018-05-20 09:56:01 ----------------------------------------------------------------------------------------- btasker changed status from 'Resolved' to 'Closed' ----------------------------------------------------------------------------------------- 2018-05-20 09:56:37 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: LocalChat Host:Rimmer commit 990a4a03c62e83914d6cd967f272eba8fed07903 Author: B Tasker