How do I disable tests for an environment?

I have the following environments defined in my platformio.ini file:


[env:nucleo_f767zi]
platform = ststm32
framework = stm32cube
board = nucleo_f767zi
board_build.stm32cube.custom_config_header = yes

[env:native]
platform = native
test_framework = doctest

I wish to disable testing for the nucleo_f767zi environment so that I don’t get errors when I do pio test or tell VS Code to do the testing.

image

Please let me know if this would be possible. Thanks.

Have you tried an empty test_filter?

https://docs.platformio.org/en/latest/projectconf/sections/env/options/test/test_filter.html

Or test_ignore = *

1 Like

test_ignore does not work for me because PlatformIO still tries to initialize unity for my STM32 Nucleo board, which I haven’t configured.