How can I run unit tests with a specific build configuration?
Hi,
Is there a way to start a Unit Test session with a specific build configuration?
i.e. the equivalent of `dotnet test -c Test` or `dotnet test -c IntegrationTest`
... but in the TestRunner.
Many thanks!
Please sign in to leave a comment.
Hello,
thank you for contacting us.
There's an option to start unit test session for different platform/framework and change build policy, please refer to the following help article - https://www.jetbrains.com/help/resharper/Reference__Windows__Unit_Test_Sessions.html#51571, Options control section.
Please let me know if you have any more questions.
Thank you.
Hi,
Thank you for your reply. Unfortunately that article does not answer my question.
I need to be able to specify the build configuration that is used when running the tests, i.e. the equivalent of using the -c or --configuration switch when running tests from the command-line. It seems that by default the R# runner uses the "Debug" configuration when debugging tests and "Release" when running the tests.
Is there a way to do this?
Cheers.
Hello,
thank you for clarification.
There's no such option, ReSharper uses active configuration only.
Thank you.
Hi,
Thanks for confirming that. I thought this was the case, but wanted to be sure.
I think this would be a useful feature. Is there someway to request this?
Cheers!
You are welcome to report it here - https://youtrack.jetbrains.com/issues/RSRP.