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

[BUG] Testing with "Testing Platform Protocol" option hangs when debugging #1616

Open
erwinkramer opened this issue Nov 18, 2024 · 1 comment
Assignees
Labels
area-test Test discovery, execution, debugging bug Something isn't working

Comments

@erwinkramer
Copy link

erwinkramer commented Nov 18, 2024

Describe the Issue

Testing with the (experimental) Testing Platform Protocol option (dotnet.testWindow.useTestingPlatformProtocol) will not start when debugging.

I'm using TUnit.

I can confirm it does work well with the similar option enabled on Microsoft Visual Studio Community 2022 (64-bit) - Preview, so it seems an isolated issue to the C# Dev Kit extension.

Reference to the issue on the TUnit project: thomhurst/TUnit#1246

Steps To Reproduce

  1. Clone this repo: https://github.com/erwinkramer/bank-api?tab=readme-ov-file#bank-api
  2. Observe the tests: https://github.com/erwinkramer/bank-api/blob/main/BankApi.Tests/Program.cs
  3. Run the tests in debug mode, so click: Debug Test.

Expected Behavior

  1. Should start and debug the tests
  2. Should be able to cancel them

Environment Information

  • OS: WIndows 11
  • VSCode version: 1.95.3
  • Extension version:
    • C# Dev Kit: v1.14.2 (pre-release) and v1.13.9
    • C#: v2.55.29
@erwinkramer erwinkramer added the bug Something isn't working label Nov 18, 2024
@webreidi webreidi added the area-test Test discovery, execution, debugging label Nov 19, 2024
@ocallesp
Copy link
Member

Hi @fhnaseer, this issue seems to be related to TestPlatform. Could you take a look and handle it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-test Test discovery, execution, debugging bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants