Join Slack
Powered by
This is the approach I think I would take - it gen...
# minutest
d
dmcg
05/04/2020, 9:14 PM
This is the approach I think I would take - it generates a context for each db decided at runtime
https://github.com/dmcg/minutest-examples/blob/master/src/test/kotlin/runtimeFixtures/MultiDBTests.kt
c
christophsturm
05/04/2020, 10:11 PM
https://github.com/christophsturm/r2dbcfun/blob/master/src/test/kotlin/r2dbcfun/R2dbcRepoTest.kt
this is how i did it for now. I want a new database and a new connection factory (or for now maybe just a connection) for each test so in your style i would need a custom factory.
d
dmcg
05/05/2020, 12:24 PM
Splendid. Also please do check out the coroutines support to see if it suits you.
https://github.com/dmcg/minutest/blob/master/docs/Cookbook.md#testing-with-coroutines
c
christophsturm
05/05/2020, 4:48 PM
thats great! will probably use it later. right now I’m doing everything explicit because I’m still learning about coroutines
7
Views
Open in Slack
Previous
Next