问题描述
我试图遵循有关使用样板启动项目的文档.并且在您提取的项目中,测试目录仅包含[ProjectName] .Tests,而文档显示测试目录中应该有两个项目,第二个是[ProjectName] .Web.Tests
I was trying to follow the documentation for using boilerplate startup project. and in you extracted project the tests directory only has [ProjectName].Tests while the documentation shows that there should be two projects in the test directory the second being [ProjectName].Web.Tests
我对使用似乎可用的集成测试非常感兴趣,但是该模板(显然是4.1.0)没有Web.Test项目.我试图从github模板项目中下载Web.Tests项目,但是感觉Tests项目现在不一样了,我不得不经历很多麻烦才能使它工作.
I am very interested in using the integration tests that appear to be available, however the template (apparently 4.1.0) does not have the Web.Test project. I attempted to download the Web.Tests project from the github template project, but it feels like the Tests project is now different and I'm having to jump through a lot of hoops to get it to work.
如果有删除它的原因,我很想了解为什么,如果没有,将它放入我的项目的最简单方法是什么?
If there is a reason why it was removed, I would love to understand why, if not, what is the easiest way to get it into my project?
推荐答案
I suppose you are referring to this article:https://aspnetboilerplate.com/Pages/Documents/Articles/Introduction-With-AspNet-Core-And-Entity-Framework-Core-Part-1/index.html
Web.Tests 仅在ASP.NET Core模板中: https://github.com/aspnetboilerplate/aspnet-core-template/tree/8659b97f960a04eacdd5d148bdb48ef6f352bf97/test/AbpCompanyName.AbpProjectName.Web.Tests
Web.Tests is only in the ASP.NET Core template:https://github.com/aspnetboilerplate/aspnet-core-template/tree/8659b97f960a04eacdd5d148bdb48ef6f352bf97/test/AbpCompanyName.AbpProjectName.Web.Tests
...针对本文中提到的这种组合:
...for this combination mentioned in the article:
- ASP.NET Core 2.x
- .NET Core(跨平台)
- 多页Web应用程序
- 不进行身份验证
这篇关于启动项目中的Web.Tests项目发生了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!