swiftlang / vscode-swift

Visual Studio Code Extension for Swift
https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Apache License 2.0
708 stars 47 forks source link

Add integration tests for TestExplorer #806

Closed plemarquand closed 1 month ago

plemarquand commented 1 month ago

Add some integration tests that exercise finding and running tests, ensuring they complete with the expected outcome.

This patch adds a new profile used when running the tests locally via the Extension Tests task. This ensures that the workspace is always in a clean and consistent state.

plemarquand commented 1 month ago

@adam-fowler I'm not sure why the CodeLLDB extension isn't present for you in the profile; the .code-profile includes it. Do you have it installed in your regular VSCode/profile? I think inclusion in the .code-profile just enables it, but wont install it if it isn't present.

This is what I have in the extensions view in the test code profile:

Screenshot 2024-05-25 at 8 24 59 AM
adam-fowler commented 1 month ago

Worked out what the issue is. I didn't realise I have to import the profile before using it. Currently I'm seeing a number of tests fail when running with Swift 5.10

plemarquand commented 1 month ago

@adam-fowler Which tests are failing specifically, and how are they failing? Do you have the logs?

plemarquand commented 1 month ago

@adam-fowler I've updated the CONTRIBUTING.md with instructions on importing the profile before running the tests.