Skip to content

Offer some kind of storage that is scoped to the group #22

@weissjeffm

Description

@weissjeffm

It would be nice if you could set some value in a :group-setup and refer to it in all the sub-tests. Currently we use vars global to the namespace, they are visible to all the tests in that namespace, not just the one group.

I don't think vars will work at all, I think we'll have to store it in the test map. I don't know how the test would access it though. Test functions are 0-arg (except data driven). So there's no way to pass anything in.

If we moved to using eval, this would be easy, just wrap the test in a (let [myvar :foo] ...)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions