New in version 6.0.
Simulation tools and frameworks allow you to simulate hardware systems and run unit tests in virtual environments. Simulators can significantly accelerate your project development, especially when used in pair with Continuous Integration.
Integration of any simulator tool to the PlatformIO Unit Testing is very simple and does not require any extra software or code writing. Please use test_testing_command project configuration option and specify a custom command to the simulation program that will be responsible for the test running. This program must output test results to the standard output or error stream.
Please note that simulator tools do not require a firmware uploading
stage. Please use the
pio test --without-uploading command
See a few integration examples for the popular simulation tools and frameworks: