Download presentation
Presentation is loading. Please wait.
1
[Automated] TDD with SQL Server using nUnit
Daniel de Sousa SQL Saturday #464, Melbourne 20th February 2016
2
Housekeeping Mobile Phones Evaluations Wifi Details
please set to “stun” during sessions Evaluations complete online to be in the draw for fantastic prizes Wifi Details SSID: eduroam Login: ext-sqlsat Password: sqlsaturd4y SESSIONS EVENT sessions/sessionevaluation.aspx eventeval.aspx
3
Connect with the Community
Event staff, volunteers and speakers are here to help and answer questions. Scan the QR code on the speaker badges to connect and network with them. speaker @SQLDropbear I attack SQL challenges by dropping onto them from above.
4
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
5
Validation 5 million rows here and 5 million rows there?
How do you validate your solutions now? SRC = STG = DEST
6
Requirements nUnit (http://nunit.org)
ORAYLIS BI.Quality ( MSBuild (Installed together with .NET Framework) MSBuildCommunityTasks (
7
nUnit NUnit is a unit-testing framework for all .Net languages.
This is where the coding happens. Installation to C:\Program Files\nUnit X.X.X
8
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
9
MSBuild Part of .NET Framework
Will be used for the automation of tests Path C:\Windows\Microsoft.NET\Framework\<version> 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.
10
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:
11
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
12
ORAYLIS BI.Quality - Lib
Contains the libraries, config files and test results(when ran manually)
13
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
14
ORAYLIS BI.Quality - Query Example
Table Connection Name Query compares the number of rows of a Table with a given target compares two tables
15
ORAYLIS BI.Quality - Create/Read CSV
Connection Name Table Query Create CSV Read CSV Number of expected rows Compare tables
16
Demo
17
Questions? Please make sure you visit our fantastic sponsors:
18
How did we do? Please complete an online Evaluation to be included the draw for a fantastic prize! There is a prize for each session timeslot and for the overall event survey – so the more feedback you provide the more chances you have. Post-Event Survey eventeval.aspx Session Surveys sessions/sessionevaluation.aspx
19
Thank you Twitter: @dcasousa
Linkedin:
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.