-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Description
In my project I have different kind of fixture.
Some create client for one database, some create client for http connection.
They are widely used but most of the time independently.
Know I would like to create both clients do some initialization calls and uninitialized after the math.
Here an exemple with cats Ressource to ilustrate.
for {
dbClient <- DbRessource()
httpClient <- HttpRessource()
localFixture <- LocalRessouce(dbClient, httpClient)
}
yield localFixtureCurrently the only way I see this possible with munit is to re-implement the content of DbRessource and HttpRessource into LocalRessouce fixture. Which is doing a lot code duplication when there is a lot of tests with different localFixture.
I did not saw solution for this problem in the documentation.
Metadata
Metadata
Assignees
Labels
No labels