ESP32 Learn

Unit Testing with PlatformIO

2025-09-18 路 ~1 min read
Table of contents
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
// test/test_basic/test_main.cpp
#include <unity.h>

void test_truth() {
  TEST_ASSERT_TRUE(1);
}
void setup() {
  UNITY_BEGIN();
  RUN_TEST(test_truth);
  UNITY_END();
}
void loop() {}

馃敄 #ci #test #platformio