How do I disable tests for an environment?

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

platform = ststm32
framework = stm32cube
board = nucleo_f767zi
board_build.stm32cube.custom_config_header = yes

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.


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

Have you tried an empty test_filter?

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.