Test ESP-IDF with PIO Unit Testing
This commit is contained in:
@@ -45,4 +45,5 @@ jobs:
|
||||
pio pkg install --global --platform symlink://.
|
||||
- name: Build examples
|
||||
run: |
|
||||
platformio run -d ${{ matrix.example }}
|
||||
pio run -d ${{ matrix.example }}
|
||||
pio test -d "examples/espidf-hello-world" -e esp32dev --without-uploading --without-testing
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
#include <unity.h>
|
||||
|
||||
void test_dummy(void)
|
||||
{
|
||||
TEST_ASSERT_EQUAL(1, 1);
|
||||
}
|
||||
|
||||
void app_main()
|
||||
{
|
||||
UNITY_BEGIN();
|
||||
|
||||
RUN_TEST(test_dummy);
|
||||
|
||||
UNITY_END();
|
||||
}
|
||||
Reference in New Issue
Block a user