地方试验项目的项目结构 [英] Place for Test-projects in projects structure

查看:116
本文介绍了地方试验项目的项目结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面你可以看到我目前的项目结构。但我并不完全满意。主要的问题是,我不知道往哪里放测试项目。

Below you can see my current project structure. But I am not fully happy with it. The main problem is that I don't know where to put Test projects.

据的标题,这将是逻辑上把YML.Tests YML文件夹内。但在这种情况下,我将混合阳明项目结构和YML.Tests项目文件夹(这并不重要,但我不喜欢它)。

According to the title, it would be logically to put YML.Tests inside YML folder. But in this case I will mix YML project structure and YML.Tests project folder (it is not critical but I don't like it).

另一种方法是重命名YML.Tests到YMLTests,然后就会有更少的投入YMLTests内YML原因。但后来我将要阳明海运和YMLTests合并成一个文件夹中。而且我必须知道如何命名。阳明海运?然后,阳明海运的项目将里面多了一个YML文件夹。

Another way is to rename YML.Tests to YMLTests and then there will be less reasons to put YMLTests inside YML. But then I will want to combine YML and YMLTests into one folder. And I have to idea how to name it. YML? Then YML project will be inside one more YML folder.

嗯...任何想法如何使它更好?

Hm... Any ideas how to make it better?

推荐答案

在解决方案项目的组织结构的设计应在溶液中工作时,最大限度地提高您的工作效率。一些影响您的工作效率的因素是项目规模,逻辑分组,和导航方便。

The organizational structure of the projects in your solution should be designed to maximize your productivity when working in the solution. Some of the factors that affect your productivity are project size, logical grouping, and navigational ease.

在这种情况下,我认为你是摔了两个不同的竞争性组织的概念:

In this case I think you are wrestling with two different competing organizational concepts:

  • 在组织软件产品功能(饲料,提取等)
  • 在组织软件开发功能(实现,测试,等等。)

这样一来,你可以创建一个单独的测试树不污染的执行树,但这样做可能会给导航轻松的一个大问题,如果你实现和测试相同的功能区域之间不断切换。

As a result, you could create a separate test tree that doesn't "pollute" your implementation tree but doing so might create a big problem for navigational ease if you constantly switch between implementation and test for the same feature area.

在最后,任何组织结构必须作出一些妥协,但考虑到你似乎是认真的测试驱动开发,我想你已经提出了组织是pretty的好。它是常用的,虽然它有它的缺点,这是可行的和富有成效的日常使用的发展。

In the end, any organizational structure has to make some compromises, but given that you appear to be serious about test-driven development, I think the organization you've proposed is pretty good. It's commonly used, and while it has its flaws, it is workable and productive for daily use development.

这篇关于地方试验项目的项目结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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