SlackerSQL Server自动化测试框架
Slacker 是一个RSpec为基础的SQL Server 2005和2008开发自动化测试框架,支持存储过程,标量/表函数,触发器等。
describe 'Get_Top_Customers' do
it 'ranks customers using the "Avg Weighted Days to Pay" ranking method' do
# Preload test data
load_csv('customter_seed_data.csv', 'dbo.Customer')
# Run stored procedure Get_Top_Customers and match resultset against expected results
sql.get_top_customers(:limit => 5).should match('expected_results.csv')
end
end评论
