18 Nov 2011 06:32
Can I achieve deterministic suite/fixture/class teardown with MSTest ?
Gishu Pillai <gishu.pillai <at> gmail.com>
2011-11-18 05:32:12 GMT
2011-11-18 05:32:12 GMT
Disclaimer: My MSTest exposure has been less than a week. Context: We're using NUnit for acceptance/customer tests. Recently there were opinions of choosing/moving to MSTest (due to reasons e.g. better integration with TFS et.all). So there are heavy code blocks that we want to run ONCE per test-class. e.g. Sample FixtureSetup => Start the app and dependent services. Teardown would be the opposite. However it is important that they execute in cycles of FixtureSetup >> Tests >> FixtureTeardown. MSTest seems to be collecting FixtureTeardowns and executing them as a bunch at some random point of time in the future. Already posted this on SO.. but it seems to have crossed SO's usual time-period before getting buried :) http://stackoverflow.com/questions/8173371 So I decided to shrug my inertia & give it a fair try (more details in the blog post linked in the SO Question). This is the only hurdle that cannot be worked around. So if someone has solved / worked around this.. please share. Thanks, Gishu [Non-text portions of this message have been removed] ------------------------------------(Continue reading)
RSS Feed