starting with component unit testing (running on device)
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
16
test/main/components_test.c
Normal file
16
test/main/components_test.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "unity.h"
|
||||
|
||||
static void print_banner(const char* text);
|
||||
|
||||
void app_main(void) {
|
||||
print_banner("Running all the registered tests");
|
||||
UNITY_BEGIN();
|
||||
unity_run_all_tests();
|
||||
UNITY_END();
|
||||
}
|
||||
|
||||
static void print_banner(const char* text) {
|
||||
printf("\n#### %s #####\n\n", text);
|
||||
}
|
Reference in New Issue
Block a user