This project has moved and is read-only. For the latest updates, please go here.

Clarication on test run order

Feb 8, 2009 at 7:52 PM
Firstly can I think you for a great project

Can I clarify if there is any order in which the tests are run ?
- I've just started trying out your examples
- in the ProductSample, there is a test "Product" with a test teardown step that drops the table PRODUCT
- but there isn't any setup step to create it ?

Or am I being a thickie and missing something obvious ??
Feb 9, 2009 at 9:47 PM
Generally, tests run first to last, in order that they appear in the .ssisUnit file. However, that is not guaranteed, and you shouldn't assume that they will always run in that order. Instead, each test should be self-contained, as much as possible.

On the Test Teardown that drops PRODUCT, the package that is being executed by the test creates the PRODUCT table. The teardown is cleaning up what the package creates.