Skip to content

Commit 1f106a0

Browse files
committed
Test ESP-IDF with PIO Unit Testing
1 parent 6295224 commit 1f106a0

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/examples.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ jobs:
4545
pio pkg install --global --platform symlink://.
4646
- name: Build examples
4747
run: |
48-
platformio run -d ${{ matrix.example }}
48+
pio run -d ${{ matrix.example }}
49+
pio test -d "examples/espidf-hello-world" -e esp32dev --without-uploading --without-testing
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <unity.h>
2+
3+
void test_dummy(void)
4+
{
5+
TEST_ASSERT_EQUAL(1, 1);
6+
}
7+
8+
void app_main()
9+
{
10+
UNITY_BEGIN();
11+
12+
RUN_TEST(test_dummy);
13+
14+
UNITY_END();
15+
}

0 commit comments

Comments
 (0)