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!

5 comments
Comment actions Permalink

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.

0
Comment actions Permalink

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.

0
Comment actions Permalink

Hello,

 

thank you for clarification.

There's no such option, ReSharper uses active configuration only.

Thank you.

0
Comment actions Permalink

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!

 

0

Please sign in to leave a comment.