Visual Studio 2015社区没有测试选项

时间:2015-09-14 14:33:23

标签: unit-testing visual-studio-2015

我安装了Visual Studio 2015社区,但我没有测试选项。

如何启用测试项目?当我在方法中右键单击时,我没有“创建单元测试”。

如何启用单元测试? Unit Test Project doesn't appear

1 个答案:

答案 0 :(得分:0)

you should be able to do that in old project types but in the new asp.net 5 core clr type projects there is not option for this. in a future tooling update the add tests option will be enabled in asp.net 5/dnx project creation templates. But you can add them manually, the new pattern uses xunit and a test project is just a class library package project. See Getting Started with xUnit and DNX