开发者

Stored procedures and unit testing

开发者 https://www.devze.com 2023-04-11 12:58 出处:网络
Does anybody know of a framework (or methodology) to unit test stored procedures just using SQL and be able to produce a reasonable report as to wh开发者_高级运维at has passed and what has failed (som

Does anybody know of a framework (or methodology) to unit test stored procedures just using SQL and be able to produce a reasonable report as to wh开发者_高级运维at has passed and what has failed (something similar to CPPUnit)?


MyTAP will probably be what you are looking for, you can find it in Github

it describes itself as: 'a unit testing framework for MySQL 5.x written using fuctions and procedures. It includes a collection of TAP-emitting assertion functions, as well as the ability to integrate with other TAP-emitting test frameworks.'

MyTAP is now hosted at [https://github.com/hepabolu/mytap][1]


Maybe you want to try STK/Unit, which is written in pure SQL and supports the ideas of Test Case and Test Suite. Also, supports expectations. http://stk.wikidot.com/stk-unit

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号