Hi,
Thank you for this library!
I'd like my test suite to remove the resources it creates, regardless of exceptions of any type. Is this possible?
My use case for this is to minimize the amount of manual cleanups when developing tests against a local instance of a stateful service.
I've looked for functions called finally or bracket in the webdriver-w3c and script-monad haddocks.
I've tried to fall back to MonadMask/MonadCatch, but these aren't implemented by WebdriverTT.
I did notice the catch*, throw* family of functions, but those don't let me catch SomeException.
MonadResource isn't implemented either.
Would it be possible to add a MonadMask instance for the webdriver monad, or if that's not feasible, functions like bracket and finally?
Either way, it seems that these need to be added to script-monad as well.
Hi,
Thank you for this library!
I'd like my test suite to remove the resources it creates, regardless of exceptions of any type. Is this possible?
My use case for this is to minimize the amount of manual cleanups when developing tests against a local instance of a stateful service.
I've looked for functions called
finallyorbracketin thewebdriver-w3candscript-monadhaddocks.I've tried to fall back to
MonadMask/MonadCatch, but these aren't implemented byWebdriverTT.I did notice the
catch*,throw*family of functions, but those don't let me catchSomeException.MonadResourceisn't implemented either.Would it be possible to add a
MonadMaskinstance for the webdriver monad, or if that's not feasible, functions likebracketandfinally?Either way, it seems that these need to be added to
script-monadas well.