Skip to content
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 tests don't run in parallel from the testing pane #3322

Closed
dgazzoni opened this issue Aug 31, 2023 · 8 comments
Closed

CTest tests don't run in parallel from the testing pane #3322

dgazzoni opened this issue Aug 31, 2023 · 8 comments
Labels
Feature: ctest fixed (release pending) fixed in pre-release and is pending official release
Milestone

Comments

@dgazzoni
Copy link

As originally reported in #3091, CTest aren't running in parallels when started from the testing pane, using the button "Run tests" with the double-play-like icon.

In #3091 this was fixed if run by pressing "Run CTest" in the status bar, and possibly through other paths, but specifically not through the testing pane. As instructed by @snehara99 I'm opening a new issue to address this specific use case.

@gcampbell-msft
Copy link
Collaborator

@snehara99 Was this resolved by #3271 ?

@snehara99
Copy link
Contributor

@snehara99 Was this resolved by #3271 ?

No, we allowed the parallel tests from the status bar and the Project Status View, but not from the Test Explorer yet. We decided to approach that separately as a feature.

@snehara99 snehara99 self-assigned this Sep 1, 2023
@microsoft microsoft deleted a comment from github-actions bot Sep 7, 2023
@gcampbell-msft gcampbell-msft added this to the Backlog milestone Nov 29, 2023
@geertj
Copy link
Contributor

geertj commented Dec 7, 2023

Commenting on this issue since the referenced issues are closed. Where is the option "Run CTest" in the status bar? Recently items have moved to the CMake pane on the left, and I don't see this option either in the CMake pane or in the status bar.

EDIT: replying to my own comment, maybe this is useful for others too. It's very subtle. In the CMake pane you need to hover over the "Test" node. This shows up a small flask icon that you need to click. Clicking this icon will run tests in parallel. See the screen shot below.

Screenshot 2023-12-07 at 12 39 36 PM

@hippo91
Copy link
Contributor

hippo91 commented Feb 3, 2024

@geertj thanks for the hint! However in my case the tests, even when launched with your method, are not run in parallel. Have you got the same pb with latest vscode version (vscode version: 1.86.0, cmake tools version: v1.16.32)?

@hippo91
Copy link
Contributor

hippo91 commented Feb 3, 2024

@geertj i finally succeed in but i had to upgrade to the pre-release version of cmake tools and then add explicitly the number of jobs in the cmake.ctest default ctest args settings.

@hippo91
Copy link
Contributor

hippo91 commented May 9, 2024

@gcampbell-msft should not this issue be closed since #3577 has been merged?

@hippo91
Copy link
Contributor

hippo91 commented May 10, 2024

@gcampbell-msft i think the label fixed (release pending) can be added to this issue.

@gcampbell-msft gcampbell-msft added the fixed (release pending) fixed in pre-release and is pending official release label May 10, 2024
@v-frankwang
Copy link
Collaborator

@hippo91 Thank you very much for your reply! This label: fixed (release pending) has been added by gcampbell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: ctest fixed (release pending) fixed in pre-release and is pending official release
Projects
Status: Completed
Development

No branches or pull requests

6 participants