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
Now select both test suites in the Test Explorer and run both. Notice only one test is marked as passing. This stems from the fact that unlike on macOS, on non Darwin platforms the test target is not included in the test run output.
Expected behavior
Both tests show as passing.
Environment
OS: Ubuntu 20.04
Swift version: Swift version 6.0-dev (LLVM 31f0cdc6d5ff8a6, Swift 497b266c2188eae)
Visual Studio Code version: 1.92.2
vscode-swift version: 1.10.7
Additional context
Here is the console output for a single suite run on Ubuntu
Test Suite 'Selected tests' started at 2024-08-27 20:23:17.187
Test Suite 'MyTestSuite' started at 2024-08-27 20:23:17.188
Test Case 'MyTestSuite.testFoo' started at 2024-08-27 20:23:17.188
Test Case 'MyTestSuite.testFoo' passed (0.0 seconds)
Test Suite 'MyTestSuite' passed at 2024-08-27 20:23:17.188
And the same run on macOS:
Test Suite 'Selected tests' started at 2024-08-28 09:13:42.501.
Test Suite 'TestTarget1.xctest' started at 2024-08-28 09:13:42.502.
Test Suite 'MyTestSuite' started at 2024-08-28 09:13:42.502.
Test Case '-[TestTarget1.MyTestSuite testFoo]' started.
Test Case '-[TestTarget1.MyTestSuite testFoo]' passed (0.001 seconds).
The text was updated successfully, but these errors were encountered:
On non Darwin platforms, XCTest results aren't correct when you have identical XCTestSuites different test targets.
To Reproduce
Create a test project with two test targets defined.
And create two test suites, one in each target.
Now select both test suites in the Test Explorer and run both. Notice only one test is marked as passing. This stems from the fact that unlike on macOS, on non Darwin platforms the test target is not included in the test run output.
Expected behavior
Both tests show as passing.
Environment
Additional context
Here is the console output for a single suite run on Ubuntu
And the same run on macOS:
The text was updated successfully, but these errors were encountered: