In order to avoid future problems, I also added three extra test suites:
With Setup only
With Tear down only
With both Setup and Tear down
(The existing test already tests for the lack of both setup and tear down.)
There's also a small page for each of these test suites to keep track that the data was correctly rolled back (in case it was selected) without having to open a db viewer.
As a last measure, I also make sure that the last step during tear down is to set the setupContext to null, in an attempt to isolate test runs from each other.
This was accidentally added in the previous PR.
In order to avoid future problems, I also added three extra test suites:
There's also a small page for each of these test suites to keep track that the data was correctly rolled back (in case it was selected) without having to open a db viewer.
As a last measure, I also make sure that the last step during tear down is to set the setupContext to null, in an attempt to isolate test runs from each other.