用于SQL的VisualStudio单元测试框架 [英] VisualStudio Unit test framework for SQL

查看:105
本文介绍了用于SQL的VisualStudio单元测试框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我是SQL的Visual Studio单元测试框架的新手,我想为我的SQL存储过程编写单元测试用例。


我知道在VS for SQL过程中很容易编写单元测试并验证输出但我的问题是如何测试内部逻辑(IF的/ where子句,内部查询结果,临时表等) ..)我的SQL过程。有没有办法做到这一点?






Venkat Kundavaram

解决方案

你好,


'学术活动 - 技术查询'论坛是关于相关的帖子与微软的学术计划有关的技术/编码/编程相关问题。


由于这是偏离主题的,我正在将问题转移到
Visual Studio单元测试
论坛。


卡尔


Hello,

I'm new to visual studio unit test framework for SQL  and I would like to write unit test cases for my SQL stored procedure.

I know its easy to write unit test in VS for SQL procedure and validate the output but my question is how can I test the inside logic (IF's / where clauses, inner query results , temp tables etc..) of my SQL procedure. Is there any way to do this?


Venkat Kundavaram

解决方案

Hello,

The 'Academic Initiatives - Technical Queries' forum is for posts Related to technical / coding / programming related issues as related to Microsoft's Academic Initiatives.

As it's off-topic here, I am moving the question to the Visual Studio Unit Testing forum on MSDN.

Karl


这篇关于用于SQL的VisualStudio单元测试框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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