Download presentation
Presentation is loading. Please wait.
Published byDiana Skinner Modified over 8 years ago
1
[Automated] TDD with SQL Server and nUnit Daniel de Sousa SQL Saturday #468, Sydney 27 th February 2016
2
Mobile Phones please set to “stun” during sessions Evaluations complete online to be in the draw for fantastic prizes Wifi Details Login: Password: SESSIONSEVENT http://www.sqlsaturday.com/468/ sessions/sessionevaluation.aspx http://www.sqlsaturday.com/468/ eventeval.aspx Housekeeping
3
Who am I? BI Architect/Developer/Consultant/Troubleshooter for consulting company in Health Working with SQL Server since 2001 Working in the Health industry since 2009 Volunteer at SQL Saturday and PASS Summit March 2015
4
Validation How do you validate your solutions? 5 million rows here and 5 million rows there? SRC = STG = DEST
5
Solution Requirements nUnit (http://nunit.org) ORAYLIS BI.Quality (https://biquality.codeplex.com/) MSBuild (Installed together with.NET Framework) MSBuildCommunityTasks (https://github.com/loresoft/msbuildtasks)
6
nUnit NUnit is a unit-testing framework for all.Net languages. This is where the action happens. Installation to C:\Program Files\nUnit X.X.X
7
ORAYLIS BI.Quality “BI.Quality” project is a test framework that is specifically designed to connects both worlds, BI and testing(Nunit). Installs to C:\Program Files (x86)\ORAYLIS(it does not confirm the installation at the end) Structure: Bin Connections Lib Queries Reports
8
MSBuild Part of.NET Framework Will be used for the automation of tests Path C:\Windows\Microsoft.NET\Framework\ needs to be added to the PATH environment variable MSBuildCommunityTasks: is used to make special tasks available, e.g. for NUnit or XSL. These are used during report generation.
9
ORAYLIS BI.Quality - Bin Contains “BI.Quality.proj” project file which contains the settings and properties for the automation of the process. First step is to make sure the nUnit folder is correct:
10
ORAYLIS BI.Quality - Connections Contains all the connections that will be used in the project(e.g Sources, Datawarehouse(destinations), Cubes, etc) in XML format. SQL Relational MDX
11
ORAYLIS BI.Quality - Lib Contains the libraries, config files and test results(when ran manually)
12
ORAYLIS BI.Quality - Queries This folder contains the tests to be run XML(test) Sql(support) Any additional file(e.g csv, xml, etc) Recommended to group in sub-folders to make it understandable and organised. Can have multiple tests in one folder
13
ORAYLIS BI.Quality - Query Example Table Query Connection Name compares the number of rows of a Table with a given target compares two tables
14
ORAYLIS BI.Quality - Create/Read CSV Table Query Connection Name Create CSV Read CSV Number of expected rows Compare tables
15
Demo
16
Questions? Please make sure you visit our fantastic sponsors:
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.