PL/SQL 的单元测试

Unit testing for PL/SQL(PL/SQL 的单元测试)
本文介绍了PL/SQL 的单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都有任何用于单元测试 PL/SQL 的经验或工具.我见过的最好看的工具似乎是 Quests Code Tester,但我不确定它与持续集成工具或命令行测试的集成效果如何?

Anyone have any experience or tools for unit testing PL/SQL. The best looking tool I've seen for this seems to be Quests Code Tester, but i'm not sure how well that would integration with continuous integration tools or command line testing?

推荐答案

我使用 utPLSQL 作为框架,使用 OUnit 作为客户端.utPLSQL 并不是真的要单独使用,需要一个好的图形客户端.OUnit 是 Qute 的前身.Qute 也是一个很好的工具,但比我的要求更复杂 - 它允许您使用 GUI 构建测试并执行诸如测试代码生成之类的好东西.

I use utPLSQL as the framework and OUnit as the client. utPLSQL isn't really meant to be used by itself, a good graphical client is required. OUnit is the predecessor to Qute. Qute is also a good tool but more complex than my requirements - it allows you to construct tests using a GUI and does good stuff like test code generation.

我的理解是 utPLSQL 将所有结果存储在数据库表中,包括所有历史结果,这将成为收集持续集成统计数据的良好数据源.您还可以定义测试组,以便对 utPLSQL 的单个调用可以调用多个测试包.

My understanding is that utPLSQL stores all results in database tables, including all historical results which would make a good data source for gathering statistics for continuous integration. You can also define test groups so a single call to utPLSQL can call multiple test packages.

这篇关于PL/SQL 的单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

SQL to Generate Periodic Snapshots from Transactions Table(用于从事务表生成定期快照的SQL)
MyBatis support for multiple databases(MyBatis支持多个数据库)
Oracle 12c SQL: Missing column Headers in result(Oracle 12c SQL:结果中缺少列标题)
SQL query to find the number of customers who shopped for 3 consecutive days in month of January 2020(查询2020年1月连续购物3天的客户数量)
How to get top 10 data weekly (This week, Previous week, Last month, 2 months ago, 3 month ago)(如何每周获取前十大数据(本周、前一周、上个月、2个月前、3个月前))
Select the latest record for an Id per day - Oracle pl sql(选择每天ID的最新记录-Oracle pl SQL)