You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When selecting the "Run/Debug Test" from the VSCode gutter, the gutter icon is not updated to "In Progress" icon when a Swift Testing test is selected.
To Reproduce
Steps to reproduce the behavior:
Open a file that has Swift Testing test case
Click on the "Run Test" gutter icon
Notice the gutter icon remain the "Play" icon until the test result is available
Navigate to file Tests/_InternalTestSupportTests/PlatformHelpersTests.swift
Select "Run Test" or "Run Suite" gutter.and wait...
Expected behavior
Once the "Run Test" or "Run Suite" gutter icon was selected, the button icon is update to in indicate the request was put in the queue.
Actual behavior
When selecting the Gutter icon, there is no indication from the gutter icon to indicate what is happening. As a user, I'm left wondering if VSCode is processing the request or not. I tend to click the Gutter icon numerous times, only to then discover the status bar indicating there is a build activity - in which I assume is related to building my tests. The gutter icon is only updated once the test results are available.
A little explanation for why this is an issue. The VS Code APIs require test runs to have all their tests specified at creation time. Because swift testing has parameterized tests, we can’t know this full list until the build completes and swift testing starts and provides us with all the individual test cases generated at run time.
Ultimately this means that we must delay creating the VS Code test run when swift testing tests are involved until after the build. This means the icon wont update when running swift testing tests until potentially much later than with XCTest test runs.
If VS Code allowed for dynamically updating the list of tests in a test run then we could make this just as smooth as XCTest.
Describe the bug
When selecting the "Run/Debug Test" from the VSCode gutter, the gutter icon is not updated to "In Progress" icon when a Swift Testing test is selected.
To Reproduce
Steps to reproduce the behavior:
Another Reproduction steps:
Tests/_InternalTestSupportTests/PlatformHelpersTests.swift
Expected behavior
Once the "Run Test" or "Run Suite" gutter icon was selected, the button icon is update to in indicate the request was put in the queue.
Actual behavior
When selecting the Gutter icon, there is no indication from the gutter icon to indicate what is happening. As a user, I'm left wondering if VSCode is processing the request or not. I tend to click the Gutter icon numerous times, only to then discover the status bar indicating there is a build activity - in which I assume is related to building my tests. The gutter icon is only updated once the test results are available.
Environment
swift --version
)Additional context
See the attached screen recording for the behaviour
The text was updated successfully, but these errors were encountered: