Can I add NUnit 3 tests to Visual Studio 2015 load tests?

こ雲淡風輕ζ 提交于 2019-12-31 03:36:11

问题


I have a testing automation framework written in C# with unit tests written in NUnit (not MSTest). I created a new Visual Studio Load Test configuration and I was expecting to be able to add these NUnit tests to the load test, however Visual Studio (2015) is not listing them. I have the NUnit 3 Test Adapter installed already. Can I add NUnit tests to VS load tests or do they have to be MSTest unit tests?


回答1:


Until now there is no package or workaround, other then converting your NUnit tests to MSTests, to add your NUnit tests to a LoadTests. The same problem also applies for XUnit test. I hope MS will enable the possibility to add XUnit and NUnit tests to a LoadTest.

A solution is that you can convert you NUnit test: http://www.stormbase.net/2010/01/12/converting-from-nunit-to-mstest/




回答2:


Yes you can. Try uninstalling the Nunit extension and readding it.



来源:https://stackoverflow.com/questions/39413727/can-i-add-nunit-3-tests-to-visual-studio-2015-load-tests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!