How to run MSUnit tests using MSBuild

I have an MSBuild script that looks like:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <Target Name="Build">

        <MSBuild Projects="MyProject.UnitTest.sln" Targets="Build" />

    </Target>
</Project>

How to run MSTest test tests that are within the solution?

I am looking for something similar to what can be used in TFS Build:

<TestContainerInOutput Include="%2a%2a\%2aTest.dll" />
+5
source share
1 answer

There are several ideas on this blog post that might help.

+2
source

All Articles