![](/img/trans.png)
[英]How to run/test app in Debug mode (F5) and have Output window still visible during the app run (VS Express 2015)
[英]How is it possible to run Ordered test in VS 2015 from bin\debug directory?
我有一個有序的mstest(.orderedtest),每次嘗試運行它時,mstest都不從輸出目錄(bin \\ debug)執行,而是從TestResults ... \\ out目錄執行。 這是真正的問題,因為測試使用解決方案目錄中的某些文件,並且我不想每次都在測試運行之前復制它們。 提前致謝。
Ps1有序測試之外的任何測試都可以正常運行
Ps2 <DeploymentEnabled>False</DeploymentEnabled>
沒有幫助
您可以優先采用以下測試方法。
該測試用例將首先執行
[TestMethod]
[Priority(1)]
public void TestMethod1()
{
}
該測試用例將在TestMethod1之后執行
[TestMethod]
[Priority(2)]
public void TestMethod2()
{
}
如果您不提供測試用例的優先級,那么它將在所有優先級的測試用例執行之后執行,就像下面的TestMethod3示例一樣。
[TestMethod]
public void TestMethod3()
{
}
我在Windows Store(Metro / WinRT)應用程序中所做的相同。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.