Hi,
when using the default PlatformIO project for ESP32 (I don’t think this is related to the board) in VSCode, I cannot run unit tests via the big testing icon on the left sidebar.
Executing a test delivers:
Error: Usage: python -m platformio test [OPTIONS]
Try 'python -m platformio test -h' for help.
Error: Got unexpected extra arguments (lib platformio.ini src)
When running it via the testing icon on the bottom it works as expected (since the default project has no tests defined):
Executing task in folder test_project: C:\Users\User Name\.platformio\penv\Scripts\platformio.exe test
Verbosity level can be increased via `-v, -vv, or -vvv` option
Collected 1 tests
Processing * in denky32 environment
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Building & Uploading...
Library Manager: Installing throwtheswitch/Unity @ ^2.6.0
Unpacking [####################################] 100%
Library Manager: Unity@2.6.0 has been installed!
Error: Nothing to build. Please put your test suites to the 'C:\Users\User Name\Documents\PlatformIO\Projects\test_project\test' folder
Uploading stage has failed, see errors above. Use `pio test -vvv` option to enable verbose output.
------------------------------------------------------------- denky32:* [ERRORED] Took 0.95 seconds -------------------------------------------------------------
============================================================================ SUMMARY ============================================================================
Environment Test Status Duration
------------- ------ -------- ------------
denky32 * ERRORED 00:00:00.952
Is there a way to configure the VSCode native testing button to work with PlatformIO?