Skip to content

Resource cleanup #63

@roberth

Description

@roberth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions