简体   繁体   English

用于SQL Server 2000的TSQLUnit?

[英]TSQLUnit for SQL Server 2000?

I need a testing framework for SQL Server 2000 (yeah, I know). 我需要一个用于SQL Server 2000的测试框架(是的,我知道)。

I would ideally use tSQLt with Red Gate Test but it does not work on SQL 2000 because it requires CLR (among other issues). 理想情况下,我将tSQLt与Red Gate Test一起使用,但由于它需要CLR(以及其他问题),因此它在SQL 2000上不起作用。

A lot of the info out there suggests TSQLUnit is (was?) supported for SQL Server 2000 but the versions on sourceforge all include non-supported syntax. 许多信息表明SQL Server 2000支持TSQLUnit (是?),但是sourceforge上的版本都包含不受支持的语法。

Specifically, the helper proc tsu_FakeTable includes this local variable: 具体来说,帮助程序proc tsu_FakeTable包含以下本地变量:

DECLARE @cmd VARCHAR(MAX);

and I'm concerned VARCHAR(8000) is a gotcha waiting to happen. 我担心VARCHAR(8000)是一个等待发生的陷阱。

Are you willing to consider an alternative framework? 您愿意考虑替代框架吗? For example DbFit (now maintained as part of the fitSharp project), which supports SQL 2000. 例如,支持SQL 2000的DbFit (现在已作为fitSharp项目的一部分进行维护)。

糟糕,过程tsu_FakeTable是帮助函数集的一部分,而不是TSQLUnit本身的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM