0

http://pgtap.org/integration.html#perl提到了如何运行测试,但我找不到 Perl 测试用例的示例。

我是否必须手动获取 DBI 连接,在其上运行我的命令并检查结果?使用 Perl 与 SQL 代码是否有意义?我错过了什么吗?

4

1 回答 1

1

pgTap is for parsing SQL output - output from running an SQL script via psql from the command line. An SQL script that contains pgTap SQL calls mixed in with the SQL statements that you wish to test.

As such, DBI doesn't enter into it.

于 2014-12-03T22:10:16.800 回答