rayray
rayray

Reputation: 1815

How do I run .cs tests that I normally run in the Visual Studio Test Explorer, in the command line?

While I'm developing, I often have to run about 5-6 tests to populate the data I need for tests. I want to automate this so I don't have to right-click/"Run" every time.

How can I get the command that VS is running so that I can just put it into a quick script that runs all the tests I need to run, in a single click (or single command) ?

Visual Studio Test Explorer

Upvotes: 0

Views: 2100

Answers (2)

Lars Hammer
Lars Hammer

Reputation: 82

The mstest.exe command line tool is what you are looking for.

Here on stack overflow, you find it under the [mstest] tag, for example how to run an mstest dll from command line

Upvotes: 4

Related Questions