Visual Studio WebAndLoadTest从UnitTesting发现测试并将它们添加到Load测试但它没有发现Xunit测试 [英] Visual Studio WebAndLoadTest discovers test from UnitTesting and add them to the Load test but it does not discover Xunit tests

查看:309
本文介绍了Visual Studio WebAndLoadTest从UnitTesting发现测试并将它们添加到Load测试但它没有发现Xunit测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个带有3个项目的visual studio c#解决方案:




  • UnitTest(Microsoft.VisualStudio.TestTools.UnitTesting)

  • xUnit Tests

  • WebAndLoadTest


在项目WebAndLoadTest中,我可以找到并将第一个项目(UnitTesting)中的单元测试添加到Test Mix中,但是我找不到第二个项目的测试,即Xunit。



有没有办法将Xunit测试添加到WebAndLoadTest测试组合中?



稍后会添加图片。



解决方案

嗨Youcef,


感谢您的发布。



>>添加从第一个项目(UnitTesting)到Test Mix的单元测试,但我没有找到第二个项目的测试,即Xunit。


如果我理解正确,问题是你在运行Xunit测试时找不到任何测试,对吗?


我得到了这个:



所以请安装 xunit.runner.visualstudio 到Xunit测试项目,然后它可以在VS测试资源管理器中运行。



参考链接:


https://xunit.github.io/docs/getting-started-desktop.html


 


祝你好运,


Fletcher 


I have a visual studio c# solution with 3 projects:

  • UnitTest (Microsoft.VisualStudio.TestTools.UnitTesting)
  • xUnit Tests
  • WebAndLoadTest

In the project WebAndLoadTest, I can find and add the unit tests from the first project (UnitTesting) to the Test Mix but I don't find the tests from the second project, namely Xunit.

Is there a way to add the Xunit tests to the WebAndLoadTest Test Mix?

Will add an image later.

解决方案

Hi Youcef,

Thanks for your posting.

>>add the unit tests from the first project (UnitTesting) to the Test Mix but I don't find the tests from the second project, namely Xunit.

if I understood it correctly, the issue is that you could not find any test when you run the Xunit test, right?

I got this for you:

So please install xunit.runner.visualstudio to the Xunit test project, then it could be run in VS test explorer.

Reference link:

https://xunit.github.io/docs/getting-started-desktop.html

 

Best regards,

Fletcher  


这篇关于Visual Studio WebAndLoadTest从UnitTesting发现测试并将它们添加到Load测试但它没有发现Xunit测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆