简体   繁体   中英

Run all open tests in Visual Studio

Is there an easy way to run all tests in open test classes in Visual Studio. I find that this is what I most often need to do.

Mostly I use Resharpers or TestDriven.NET testrunners, and I cant find any easy way to do that in either testrunner. In Resharper it would be nice to have a "Add all open tests to session" feature, but after much googling I cant find one, or any other easy way to do this.

Is there a tool, plugin, or what-not to do this?

AFAIK, there isn't such a feature.

Alternatively you could

  • run all tests within a class (by setting the cursor to the class, outside of a method, and pressing Ctrl+RT )
  • run all tests within a namespace (by setting the cursor into the namespace, outside of a class, and pressing Ctrl+RT )

After you managed to run the interesting tests (however), you could

  • run these tests again by pressing Ctrl+RD
  • run failed tests again by pressing Ctrl+RF

Then you can create test lists. I don't do this, it's to time consuming to keep them up to date.

运行所有测试:按Ctrl + R,A

您是否考虑过自动化测试在CruiseControl之类的构建服务器上运行?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM