25

How can I unit test SSIS packages? I want to be able to create and maintain unit tests for various components such as the workflow tasks, data flow tasks, event handlers, etc.

Are there any existing techniques, frameworks, and/or tools that can be used?

Ray
  • 187,153
  • 97
  • 222
  • 204

4 Answers4

15

ssisUnit

A unit testing framework for SQL Server Integration Services

Ray
  • 187,153
  • 97
  • 222
  • 204
7

Nowadays, ssisUnit isn't up to date and exist modern unit testing framework for SQL Server Integration Services called SSISTester.

MSDN article

Nuget

Ruslan Hamzatov
  • 415
  • 4
  • 8
2

some testing practices I usually follow when testing SSIS packages.

I always test at package level (it usually does not make a lot of sense to me to test at a lower level than this.... )

I usually keep a testing data environment with pretty small data sets.

Also a testing configuration profile (config files) pointing to the testing data sets and any other different testing parameters.

Depending of the nature of the project sometimes I also keep some database backups used to be restored whenever we want to reset the environment initial status (or any other statuses in the ETL process).

All of these combined in a good set of testing scripts (python, powershell...) calling the packages via dtexec, it's a pretty useful recipe for me ;-)

river0
  • 494
  • 2
  • 6
  • 11
0

ssisUnitLearning is a SSIS Tester

SSIS project to learn SSIS-Unit testing

For more go to with "ssisUnit testing" series at bartekr

Amirhossein
  • 1,148
  • 3
  • 15
  • 34