如何在Visual Studio Online中的托管生成代理上安装SQL Server? [英] How do I install a SQL Server on the hosted build agent in Visual Studio Online?

查看:73
本文介绍了如何在Visual Studio Online中的托管生成代理上安装SQL Server?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的一位客户使用Visual Studio Online(解决方案

感谢您的所有帮助.

我联系了@tamasf,后者是实体框架工作量测试工具的开发者之一,他告诉我,工作量测试工具只需要了解他的EDMX文件就可以模拟实体框架(这意味着数据库不会需要启动并运行,因此,允许我们遵循正确的单元测试实践)有关更多信息,请阅读以下文章:

One of our customers uses Visual Studio Online ( http://www.visualstudio.com/en-us/products/what-is-visual-studio-online-vs.aspx ) which is based on capabilities of Team Foundation Server (TFS)

We were researching how to do automated Builds and automated Unit Tests using the Visual Studio Online account.

Using Visual Studio 2012 IDE, I was able to setup a build in the Hosted Build Service. However, my Unit Tests need a Microsoft SQL Server Database to run properly, which I have installed on my development workstation.

In order to run my tests I need to have my database running in a SQL instance on the build agent.

Is it possible to install SQL server on the Hosted Build Agent, and if so, how?

解决方案

Thanks for all your help.

I contacted @tamasf who is one of the developers for the Effort Testing Tool for Entity Framework, and he told me that Effort Testing Tool only needs to know about he EDMX file in order mock Entity Framework ( which means Database won't need to be up and running, therefore, allowing us to follow proper Unit testing practices ) For more information, please read the following post: How would I configure Effort Testing Tool to mock Entity Framework's DbContext withOut the actual SQL Server Database up and running?

这篇关于如何在Visual Studio Online中的托管生成代理上安装SQL Server?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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