根据预设,单元测试和指令码中的参考不会自动更新。
By default, references in unit tests and scripts are not updated automatically.
下表将提供与任何资料库单元测试有关的完整指令码清单。
The following table provides a complete list of scripts that are associated with any database unit test.
您可以在单元测试执行时,侦错程式码。
您也可以建立一个空的资料库单元测试,稍后再新增程序码以测试其他类型的资料库专案。
You can also create an empty database unit test and add code later to test other types of database objects.
针对现有的程序码建立和执行单元测试。
这可能是单元测试,或是其他能够执行具有符号之程序码的测试类型,以及您已选取要检测之适当二进位码档案的测试类型。
These can be unit tests, or other test types that exercise code for which you have symbols, and you have selected the appropriate binaries to instrument.
但是,如果您的测试回合包含了不同测试类别的单元测试,则会在执行单元测试的前后,执行关联测试类别的通用指令码。
However, if your test run contains unit tests from different test classes, the common scripts for the associated test class will be run before and after the unit test runs.
除了这三个动作以外,也有两个测试指令码(称为通用指令码)会在执行资料库单元测试的前后来执行。
In addition to these three actions, there are also two test scripts (referred to as common scripts), which run before and after a database unit test runs.
单元测试可协助改善程式码的品质,它可确保您所做的变更不会导致现有功能发生错误。
These tests can be run to check that changes to the database or database code do not affect existing database code.
使用单元测试改善程序码品质:您可以自动从现有程序码产生单元测试,也可以手动建立单元测试。
Improving database Code Quality Using database unit tests: You can create database unit tests to verify that the stored procedures, functions and triggers in the database are working correctly.
避免破坏现有的资料库程式码:在将变更与小组共用前或将变更部署至实际执行环境前,如果能先执行现有的资料库单元测试,可以降低中断应用程式行为的风险。
Performing iterative database development: If you are a developer or a tester, you check out parts of the project and then update them in an isolated development environment.
避免破坏现有的资料库程式码:在将变更与小组共用前或将变更部署至实际执行环境前,如果能先执行现有的资料库单元测试,可以降低中断应用程式行为的风险。
Performing iterative database development: If you are a developer or a tester, you check out parts of the project and then update them in an isolated development environment.
应用推荐