开发环境的方法
我想知道公司如何组织他们的开发环境。更具体地说,我有兴趣知道:
每个开发人员是否都有一个完整的部署环境,包括桌面上的应用程序服务器和数据库?在共享数据库的情况下,如何确保数据库单元测试不会干扰开发人员?
分享您的经验和想法将不胜感激!
I was wondering how companies organize their development environments. More specifically I am interested to know:
Does each developer has a complete deployment environment including application servers and database in their desktop? In the case of a shared Database how do you ensure DB unit testing does not interfere across developers?
Sharing your experiences and thoughts would be much appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据我的经验,开发人员通常会在本地运行应用程序服务器(这是必要的,因为他们需要将当前代码部署到其中),但很少运行数据库。
您可以为中央服务器上的每个开发人员拥有单独的数据库架构,以便在必要时隔离它们,但实际的单元测试永远不应该访问真实的数据库。这就是集成测试,这些测试通常在集成或构建服务器上运行,而不是由单个开发人员运行。
In my experience, developers do typically run an app server locally (necessary because they need to deploy their current code to it), but seldom a database.
You can have separate DB schemas for each developer on the central server to isolate them if necessary, but actual unit tests should never hit the real database. That would be integration tests, and those are more typically run on an integration or build server rather than by individual developers.