diff --git a/test/main/relay_chn_test.c b/test/main/relay_chn_test.c index d8c18e2..03123be 100644 --- a/test/main/relay_chn_test.c +++ b/test/main/relay_chn_test.c @@ -72,4 +72,13 @@ TEST_CASE("Relay channels do not change state for invalid channel", "[relay_chn] check_channels_state_unchanged(); relay_chn_flip_direction(relay_chn_count + 1); // Flip the direction check_channels_state_unchanged(); -} \ No newline at end of file +} + + + +// Test app entry point +void app_main(void) +{ + // Run the Unity tests menu + unity_run_menu(); +} diff --git a/test/main/relay_chn_test_main.c b/test/main/relay_chn_test_main.c deleted file mode 100644 index 8b007a3..0000000 --- a/test/main/relay_chn_test_main.c +++ /dev/null @@ -1,21 +0,0 @@ -#include -#include -#include "unity.h" -#include "unity_test_runner.h" - - -static void print_banner(const char*); - -void app_main(void) { - - print_banner("Starting interactive test menu"); - /* This function will not return, and will be busy waiting for UART input. - * Make sure that task watchdog is disabled if you use this function. - */ - unity_run_menu(); -} - -static void print_banner(const char* text) -{ - printf("\n##### %s #####\n\n", text); -} \ No newline at end of file