Slacker是一个RSpec为基础的SQLServer2005和2008开发自动化测试框架,支持存储过程,标量/表函数,触发器等。
describe'Get_Top_Customers'doit'rankscustomersusingthe"AvgWeightedDaystoPay"rankingmethod'do#Preloadtestdataload_csv('customter_seed_data.csv','dbo.Customer')#RunstoredprocedureGet_Top_Customersandmatchresultsetagainstexpectedresultssql.get_top_customers(:limit=>5).shouldmatch('expected_results.csv')endend点击空白处退出提示
评论