Can we test an object that needs initialization and teardown?
Adam Retter
adam.retter at googlemail.com
Tue Oct 9 14:22:13 UTC 2018
> But the "nuts" part is assuming it is sensible to have very heavy-weight @State. The harness is able
> to capture concurrency bugs by executing lot of tests, and spending the significant time at
> setup/teardown works against that. In other words, @State-s are created by millions per test
> (because @Actor-s are basically one-shot per @State), instantiating and shutting down the database
> every time does not look very sane.
Thanks Aleksey, that is a good point well made! :-)
I will give some thought to testing these database issues using a
different approach than jcstress.
Thanks for all your work on jcstress, it is a very interesting and helpful tool.
--
Adam Retter
skype: adam.retter
tweet: adamretter
http://www.adamretter.org.uk
More information about the jcstress-dev
mailing list