Issues when running tests in parallel #3655
Labels
bug
a bug in the product
documentation
related to documentation of the extension
Feature: ctest
more info needed
More info is needed from the community for us to properly triage and investigate.
Milestone
Brief Issue Summary
This is sort of follow-up to #3091. I have two, possibly related issues:
Tests do not follow the philosophy "Visual Studio Code settings do not change preset behaviour"
The doc states
and
Neither of these is true unless user has specifically set
"cmake.ctest.allowParallelJobs": true,
in settings (defaults tofalse
). If this setting is not on, CMake: Run Tests does the following:While this does pass
--parallel N
if preset has"execution": {"jobs": N}
, that option does nothing since there is only one test executing due to-R
effect.I don't know what the correct action is. Preferably, the behaviour should stick to the philosophy of "settings do not interfere with presets" and either the setting should be
true
by default or removed altogether (since it does affect running tests outside of CMakePresets.json).CMake: Run Tests and Tests: Run All Tests have different behaviour
Once I do set
"cmake.ctest.allowParallelJobs": true,
, CMake: Run Tests and clicking the flask in CMake tab does execute tests in parallel as expected, but Tests: Run All Tests and clicking "Run Tests" in "Testing" tab does not execute tests in parallel, as if ignoringcmake.ctest.allowParallelJobs
completely.While not a critical issue, this prevents use of Testing tab and access to nice visual test results.
I didn't include Log diagnostics nor debug logs, since they don't seem very useful and I'd have to strip them of protected information first. If you need them, I can provide it to you.
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: