What is Run Test -> With Custom Parameters in Visual Studio for Mac

Yndigo 0 Reputation points
2023-06-15T03:59:45.5533333+00:00

Without the ability to set a .runsettings file in Visual Studio for Mac, unit testing is very much a chore. However, there is an option on the right click menu called Run Test With -> Custom Parameters. This looks promising as it allows you to specify Arguments, Working Directory and Environment Variables. Problem is, there is literally zero documentation on this feature, zero. No mention online, just doesn't exist. Also, it doesn't seem to do anything, it creates an Application Output window that just hangs there. All very strange. Is there a purpose to this? It seems like it would be a way of getting past the glaring omission of not being able to specify runsettings files, but maybe it's just in there by mistake.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,922 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,198 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
351 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,246 Reputation points Microsoft Vendor
    2023-06-16T03:47:11.7733333+00:00

    Hello @Yndigo ,

    Welcome to Microsoft Q&A forum.

    I have helped to report your feedback(improving and adding the documentation about Run Test With -> Custom Parameters feature).

    Currently, you may try to use command line tool(integrated terminal in VS for Mac) and command line/parameters to specify and use a .runsettings file.

    There’s a similar ticket: .runsettings file with VS Mac and NUnit 3 VS Adapter for you to refer to, and a similar reported ticket(under review): How to select runsettings file in Visual Studio 2019 for Mac, please kindly follow up, add comments and vote for the ticket. You can also directly report the issue to product team by submitting a new ticket on our Developer Community - VS for Mac.

    Thanks for helping us make Visual Studio for Mac better, have a great day.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.