HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
WifiComprehensiveTest.cpp File Reference

Comprehensive WiFi testing suite for ESP32-C6 DevKit-M-1 with ESP-IDF v5.5f. More...

#include "TestFramework.h"
#include "base/BaseWifi.h"
#include "mcu/esp32/EspWifi.h"
Include dependency graph for WifiComprehensiveTest.cpp:

Functions

bool test_wifi_data_structures () noexcept
 
bool test_wifi_enums () noexcept
 
bool test_wifi_error_codes () noexcept
 
bool test_wifi_interface_validation () noexcept
 
bool test_wifi_performance_interface () noexcept
 
bool test_wifi_integration_interface () noexcept
 
bool test_wifi_stress_interface () noexcept
 
bool test_wifi_initialization () noexcept
 
bool test_wifi_access_point_creation () noexcept
 
bool test_wifi_network_scanning () noexcept
 
bool test_wifi_station_connection () noexcept
 
bool test_wifi_power_management () noexcept
 
bool test_wifi_advanced_features () noexcept
 
bool test_wifi_event_handling () noexcept
 
void app_main (void)
 

Variables

static const char * TAG = "WIFI_Test"
 
static TestResults g_test_results
 
static constexpr bool ENABLE_CORE_TESTS = true
 
static constexpr bool ENABLE_INTERFACE_TESTS = true
 
static constexpr bool ENABLE_PERFORMANCE_TESTS = true
 
static constexpr bool ENABLE_FUNCTIONAL_TESTS = true
 

Detailed Description

Comprehensive WiFi testing suite for ESP32-C6 DevKit-M-1 with ESP-IDF v5.5f.

This test suite provides both interface testing and functional testing of the EspWifi implementation:

INTERFACE TESTS (Default - ENABLED):

  • Class structure, data types, and interface validation
  • No actual WiFi hardware operations
  • Safe for CI/CD and development environments

FUNCTIONAL TESTS (Default - ENABLED):

  • Real WiFi hardware operations using EspWifi library
  • Access Point creation (visible on phones/computers)
  • Network scanning and discovery
  • Station mode connection attempts
  • Power management and advanced features
  • Event handling and callbacks

To enable functional tests, set ENABLE_FUNCTIONAL_TESTS = true

Author
Nebiyu Tadesse
Date
2025

Function Documentation

◆ app_main()

void app_main ( void )

◆ test_wifi_access_point_creation()

bool test_wifi_access_point_creation ( )
noexcept

◆ test_wifi_advanced_features()

bool test_wifi_advanced_features ( )
noexcept

◆ test_wifi_data_structures()

bool test_wifi_data_structures ( )
noexcept

◆ test_wifi_enums()

bool test_wifi_enums ( )
noexcept

◆ test_wifi_error_codes()

bool test_wifi_error_codes ( )
noexcept

◆ test_wifi_event_handling()

bool test_wifi_event_handling ( )
noexcept

◆ test_wifi_initialization()

bool test_wifi_initialization ( )
noexcept

◆ test_wifi_integration_interface()

bool test_wifi_integration_interface ( )
noexcept

◆ test_wifi_interface_validation()

bool test_wifi_interface_validation ( )
noexcept

◆ test_wifi_network_scanning()

bool test_wifi_network_scanning ( )
noexcept

◆ test_wifi_performance_interface()

bool test_wifi_performance_interface ( )
noexcept

◆ test_wifi_power_management()

bool test_wifi_power_management ( )
noexcept

◆ test_wifi_station_connection()

bool test_wifi_station_connection ( )
noexcept

◆ test_wifi_stress_interface()

bool test_wifi_stress_interface ( )
noexcept

Variable Documentation

◆ ENABLE_CORE_TESTS

constexpr bool ENABLE_CORE_TESTS = true
staticconstexpr

◆ ENABLE_FUNCTIONAL_TESTS

constexpr bool ENABLE_FUNCTIONAL_TESTS = true
staticconstexpr

◆ ENABLE_INTERFACE_TESTS

constexpr bool ENABLE_INTERFACE_TESTS = true
staticconstexpr

◆ ENABLE_PERFORMANCE_TESTS

constexpr bool ENABLE_PERFORMANCE_TESTS = true
staticconstexpr

◆ g_test_results

TestResults g_test_results
static

◆ TAG

const char* TAG = "WIFI_Test"
static