存储过程测试
Stored Procedure testing
我在一个医疗保健项目中,其中大部分业务都是用存储过程编写的。我如何测试存储过程以检查每个业务的数据是否在流动?是通过我应该使用的任何测试工具来实现这一目标吗?如果是,请告诉我工具名称。我需要逐字段测试数据。请确认。
您有两个主要选择:
1:编写自己的单元测试场景。您可以按照此 link 获得更好的指导:https://msdn.microsoft.com/en-us/library/jj851212(v=vs.103).aspx
2:您可以使用一些第三方工具来测试您的存储过程。其中一些工具是:
TST simplifies the task of writing and running test automation for
T-SQL code. Written in T-SQL it provides an API similar to those
provided by other Unit Testing frameworks. Can produce test reports in
XML format. It provides automatic rollback, dataset comparison
support, etc.
If you want to do SQL Server unit testing in T-SQL, and run it as part
of your automated builds, SQL Test is the place to start. It's simple
to set up, you don’t need extra tools, and you don't need to learn new
technologies. SQL Test also comes with pre-written SQL Cop tests, to
help you enforce best practices for database development and run
static analysis tests.
Importantly, because tSQLt allows you to implement unit tests in
T-SQL, you don’t have to switch between various tools to create the
code and unit tests.
您还可以找到许多其他类似的工具。
我在一个医疗保健项目中,其中大部分业务都是用存储过程编写的。我如何测试存储过程以检查每个业务的数据是否在流动?是通过我应该使用的任何测试工具来实现这一目标吗?如果是,请告诉我工具名称。我需要逐字段测试数据。请确认。
您有两个主要选择:
1:编写自己的单元测试场景。您可以按照此 link 获得更好的指导:https://msdn.microsoft.com/en-us/library/jj851212(v=vs.103).aspx
2:您可以使用一些第三方工具来测试您的存储过程。其中一些工具是:
TST simplifies the task of writing and running test automation for T-SQL code. Written in T-SQL it provides an API similar to those provided by other Unit Testing frameworks. Can produce test reports in XML format. It provides automatic rollback, dataset comparison support, etc.
If you want to do SQL Server unit testing in T-SQL, and run it as part of your automated builds, SQL Test is the place to start. It's simple to set up, you don’t need extra tools, and you don't need to learn new technologies. SQL Test also comes with pre-written SQL Cop tests, to help you enforce best practices for database development and run static analysis tests.
Importantly, because tSQLt allows you to implement unit tests in T-SQL, you don’t have to switch between various tools to create the code and unit tests.
您还可以找到许多其他类似的工具。