-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CTest Test Suite Delimiter prevents running all tests #4092
Comments
@Jesseeee We can't reproduce the problem based on the information you provided, can you provide us with a project that can reproduce the problem? This will go a long way in helping us to investigate this problem, thank you |
Hello @Yingzi1234 , hopefully this gif makes the issue more clear, so when just adding the delimiter nothing is seen as run, I click start and would expect all tests to run, and only one test suite is run. |
Hi @Jesseeee , we can't reproduce your issue on latest CMake tools version 1.20.10(pre-release), you can get the details repro steps below, please let us know if it is wrong. Thank you! ENV: Repro steps:
|
Hello @Yingzi1234 that's not really what I'm running into, I've made a small example project because I can't share my actual project, but it demonstrates the issue well, it's really when you have what is seen as 2 separate test suites and you try to run them all, be that through clicking that button or executing a command |
@Jesseeee Thanks for the update on this issue, we can reproduce the issue based on the items you provided, you can get the specific information below. ENV: Repro steps:
Actual result: |
…#4092) * Introduces type alias (DriverMapT) to factorize type declaration * Introduces the getProjectDriver method * Adds comments
…#4092) * Introduces type alias (DriverMapT) to factorize type declaration * Introduces the getProjectDriver method * Adds comments * Adds entry in the CHANGELOG
…#4092) * Introduces type alias (DriverMapT) to factorize type declaration * Introduces the getProjectDriver method * Adds comments * Adds entry in the CHANGELOG
…4154) * fix: CTest Test Suite Delimiter prevents running all tests (#4092) * Introduces type alias (DriverMapT) to factorize type declaration * Introduces the getProjectDriver method * Adds comments * Adds entry in the CHANGELOG * Fix wrong object initialization * Takes into account code review remarks. Do not return CMakeDriver | String but do return CMakeDriver and throw error in case of problem * Fix lint issue --------- Co-authored-by: Garrett Campbell <[email protected]>
@Jesseeee @gcampbell-msft This issue has been fixed on latest CMake tools version 1.20.24(pre-release), you can get the details below. Thank you! |
Brief Issue Summary
When using the test explorer and enabling the test suite delimiter, I see it correctly get split up and I can run the test suites separately, however when I click on the run of the application itself in the explorer, execute "CMake: run tests" or "Test: run all tests" it only runs a single test suite (presumably the first one it finds)
One peculiarity is that when I click on the run button to run them all, it first shows "0/49" which is the correct amount of tests and then only ends up with "15/15" from that first test suite
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response
Example project & gif:
ctest-project.zip
The text was updated successfully, but these errors were encountered: