Home

Vassil Kovatchev edited this page Apr 16, 2015 · 49 revisions

Slacker

Slacker is a transacted RSpec-based framework for developing automated tests for SQL Server 2005-2014 programmable objects such as stored procedures, scalar/table functions, triggers, etc.

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

Slacker's Mailing List