swiftlang / vscode-swift

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

Run tests using the release configuration #849

Closed fumoboy007 closed 2 weeks ago

fumoboy007 commented 3 weeks ago

Is your feature request related to a problem? Please describe. I need to be able to run tests using the release configuration for extra performance and production readiness.

Describe the solution you'd like As far as I can tell, the Test Explorer always chooses the debug executable. I want a toggle somewhere to build and run the tests using the release configuration.

Describe alternatives you've considered I don’t see an alternative aside from directly using a shell.

adam-fowler commented 3 weeks ago

We could probably add a test profile for running tests in release. @plemarquand what do you think?

plemarquand commented 3 weeks ago

I agree, I can add this.

fumoboy007 commented 3 weeks ago

Thanks so much for your consideration!

I forgot to say that I also need to be able to debug the test in release mode. My current use case is that I am debugging a test failure for my Swift package that only happens on Linux and only in release mode. 😄

plemarquand commented 3 weeks ago

@fumoboy007 Sounds good, the way to access these when they're added will be to right click a test and then pick one of:

plemarquand commented 3 weeks ago

Draft is up in #856

award999 commented 2 weeks ago

Verified with b461f8f