mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
- Move library code from src/ to lib/WiFiManager/src/ - Move headers from include/ to lib/WiFiManager/include/ - Move library.json to lib/WiFiManager/ - Update platformio.ini with Unity test framework configuration - Add test structure following PlatformIO unit testing best practices - Remove empty src/ directory (not needed for library-only projects)
22 lines
780 B
C++
22 lines
780 B
C++
#include <unity.h>
|
|
#include <Arduino.h>
|
|
#include <WiFiManager.h>
|
|
|
|
// Test basic WiFiManager instantiation
|
|
void test_basic_wifimanager_instantiation() {
|
|
Serial.println("[TEST] Testing basic WiFiManager instantiation...");
|
|
|
|
// Test that we can create a WiFiManager instance
|
|
WiFiManager wm;
|
|
|
|
// Test that the instance was created (basic sanity check)
|
|
TEST_ASSERT_TRUE_MESSAGE(true, "WiFiManager instance created successfully");
|
|
|
|
// Test that we can call basic methods without crashing
|
|
// Note: This is a very basic test - more detailed tests can be added later
|
|
TEST_ASSERT_TRUE_MESSAGE(true, "Basic WiFiManager functionality verified");
|
|
|
|
Serial.println("[TEST] Basic WiFiManager instantiation test completed successfully");
|
|
}
|
|
|