Pseudo Sudo
Pseudo Sudo

Reputation: 1412

Creating a shortcut to run an automated test

For simplicity's sake, I am wanting to create a desktop shortcut that when clicked, runs an automated C# Test Method that I have created. That way, when the icon is clicked, the test will be run without Visual Studio.

Could anyone provide me with some guidance as how to accomplish this, if it is even possible for me to do? I'd appreciate it. Thanks!

Upvotes: 0

Views: 127

Answers (1)

stuartd
stuartd

Reputation: 73243

You can invoke MSTest from the command line:

mstest /testcontainer:tests.dll /test:mytest

Upvotes: 1

Related Questions