Skip to content

Feature request: Implement "before all" macro #9

@64kramsystem

Description

@64kramsystem

In some cases, it's required to share a single instance between tests.

AFAIK, the current macro before is run before each test, so it doesn't work for the cases above.

There is a workaround, which is very ugly though - using lazy_static with phony implementations of Send and Sync, which is... 🤯

My request is therefore to implement the (typical) "before_all" logic, which is executed only once (per context/describe).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions