title: Automating C++ unit test runs for WinRT
body: <p>Since running Metro apps headlessly is still a gray area: <a href="https://stackoverflow.com/questions/10179135/running-a-metro-app-headlessly">Running a metro app headlessly</a>, I've recently decided to add a native unit test project to my Windows Metro app in hopes that I can find a way to run these unit tests in an automated fashion on the build server. Basically, I'm looking for something similar to MSTest.exe - a utility which is great for running tests from batch files and/or scripts.</p>
  
  <p>In fact, I've tried using the new version of MSTest.exe that comes with VS11 on a generated test .dll, but it fails with the error:</p>
  
  <p>"Unable to load the test container 'test.dll' or one of its dependencies... Error details: Could not load file or assembly file://test.dll' or one of its dependencies. The Module was expected to contain an assembly manifest."</p>
  
  <p>Does MSTest.exe work with test containers that contain WinRT code? If not, is there a utility that will do what I want?</p>
  
  <hr>
  
  <p>Edit: I just found out that MSTest does not support running tests on a Metro style app. Found here: <a href="http://msdn.microsoft.com/en-us/library/ms253138%28v=vs.110%29.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms253138%28v=vs.110%29.aspx</a> This really is too bad. I'm still hoping there's a utility out there that will work.</p>