; PlatformIO — Unity tests for home-assistant-integration (ArduinoHA) ; ; Full suite: ; pio test -e esp8266 ; pio test -e esp32 ; ./scripts/test.sh compile --platform esp32 ; ; Single suite (examples): ; pio test -e esp8266 --filter test_utils_serializers ; pio test -e esp8266 --filter test_mqtt_core ; pio test -e esp8266 --filter test_entities_basic ; pio test -e esp8266 --filter test_entities_numeric ; pio test -e esp8266 --filter test_entities_extended ; pio test -e esp8266 --filter test_entities_misc ; ; See: https://docs.platformio.org/en/latest/advanced/unit-testing/structure/hierarchy.html [platformio] default_envs = esp8266 [common] framework = arduino test_framework = unity test_build_src = yes monitor_speed = 115200 build_flags = -DARDUINOHA_TEST lib_deps = knolleary/PubSubClient@2.8.0 [env:esp8266] extends = common test_ignore = test_native_core platform = espressif8266 board = d1_mini ; Keep root Unity coverage on the same Postmortem relocation-fix snapshot as ; the maintained ESP8266 examples. See docs/ESP8266-LINKER-WORKAROUND.md. platform_packages = platformio/framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git#521ae60a89e64bb0d1eb7a0b7addf620ced5cad3 [env:esp32] extends = common test_ignore = test_native_core platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.311/platform-espressif32.zip board = esp32dev build_unflags = -std=gnu++11 build_flags = ${common.build_flags} -std=gnu++14 ; Host-only regression checks for serialization, topic validation, and the ; PubSubClient mock path. The Arduino compatibility files live exclusively ; under test/native and are never included in firmware environments. [env:native] platform = native test_framework = unity test_build_src = yes lib_deps = throwtheswitch/Unity@^2.6.1 build_flags = -DARDUINOHA_TEST -Itest/native/include -fsanitize=address,undefined -fno-omit-frame-pointer build_src_filter = -<*> + + + + + + + + + + + + +