Reputation: 103
Does anyone know if it is possible to perform a One Time Setup using tSQLt?
From what I've seen in the documentation there is a SetUp SP for the TestClass Mechanism which runs before each test is executed but I can't see anything to the OneTimeSetup test fixture in NUnit.
Thanks
Upvotes: 0
Views: 161
Reputation: 11813
One of the core principles of tSQLt is to not allow for any side-effects. A class level setup would violate that principle. Therefore this functionality is not likely to be added soon. However, I've been thinking about adding a capability to allow for tests to be executed outside of a transaction and have started the work to implement an undo framework. But currently there are more pressing concerns atop of the list.
Upvotes: 2