Skip to content

Use an actual bracket to handle test setup/cleanup #126

@jy14898

Description

@jy14898

At the moment, cleanup is handled by simply running the cleanup after the test sub-tree:

loop (mapWithIndex indexer xs) <* lift (cleanup unit)

This isn't great, as it doesn't get run in situations where the Aff was cancelled. We can fix this by using Aff's bracket.

IMO this would also lead to a simpler implementation of the afterAll beforeAll hook if a full bracket is encoded in the tree data type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions