Consolidate and optimize test suite (80 -> 43 tests)

This commit is contained in:
2025-11-02 13:44:49 +10:00
parent afb5bb61b8
commit ca373b2b8e
10 changed files with 174 additions and 682 deletions
+6 -3
View File
@@ -39,16 +39,19 @@ void test_reset_settings() {
Serial.println("[TEST] resetSettings() test completed successfully");
}
// Test disconnect without erasing credentials
// Test disconnect - verify it doesn't crash and can be called multiple times
void test_disconnect() {
Serial.println("[TEST] Testing disconnect()...");
WiFiManager wm;
// Disconnect should not crash even if not connected
wm.disconnect();
bool result1 = wm.disconnect();
// Disconnect returns true/false, just verify no crash
// Can be called multiple times safely
bool result2 = wm.disconnect();
// Verify no crash (results may be true/false depending on WiFi state)
TEST_ASSERT_TRUE_MESSAGE(true, "disconnect() executed without crash");
Serial.println("[TEST] disconnect() test completed successfully");