兰州工业高等专科学校学报
蘭州工業高等專科學校學報
란주공업고등전과학교학보
JOURNAL OF LANZHOU POLYTECHNICAL COLLEGE
2012年
3期
38-41
,共4页
DbUnit%数据库单元测试%管理和控制数据库%测试流程
DbUnit%數據庫單元測試%管理和控製數據庫%測試流程
DbUnit%수거고단원측시%관리화공제수거고%측시류정
DbUnit%database unit testing%management and control of database%test process
在实现测试驱动开发过程中,DbUnit工具是专门针对数据库测试的单元测试框架,它是对JUnit的一个扩展.DbUnit测试允许程序员在整个测试过程中自由地管理和控制数据库,将其置于一个可知的状态.在明确测试机制、搭建好测试环境的基础之上,围绕数据库备份、植入测试数据集进行单元测试、使数据库恢复到测试前状态等问题进行分析和探讨,以期建立一个良好的测试流程.
在實現測試驅動開髮過程中,DbUnit工具是專門針對數據庫測試的單元測試框架,它是對JUnit的一箇擴展.DbUnit測試允許程序員在整箇測試過程中自由地管理和控製數據庫,將其置于一箇可知的狀態.在明確測試機製、搭建好測試環境的基礎之上,圍繞數據庫備份、植入測試數據集進行單元測試、使數據庫恢複到測試前狀態等問題進行分析和探討,以期建立一箇良好的測試流程.
재실현측시구동개발과정중,DbUnit공구시전문침대수거고측시적단원측시광가,타시대JUnit적일개확전.DbUnit측시윤허정서원재정개측시과정중자유지관리화공제수거고,장기치우일개가지적상태.재명학측시궤제、탑건호측시배경적기출지상,위요수거고비빈、식입측시수거집진행단원측시、사수거고회복도측시전상태등문제진행분석화탐토,이기건립일개량호적측시류정.
In the process of realizing Test-Driven development,DbUnit tool is a kind of unit test framework especially for database testing which is an extension of JUnit.In the process of DbUnit testing,programmer can manage and control database freely,place it in a knowable state.The problems such as database backup,implanting data to test,database recovery are analyzed on the base of clearifying the test mechanism and building the test environment,so as to build a good test process.