Running tests on lemon-demo-reactive requires mongodn to be running locally, and even then fails when run first time, If you run it second time, it passes.
Looks like it requires lemontest database to pre-exist. Couldn't we fix it by creating it beforehand? Or better yet, would be great if we could point it to an in-memory DB, or Docker or do something robust about it.
Technical hint: See the @SpringBootTest annotations on AbstractTests, and also MyTestUtils.initDatabase.
Running tests on
lemon-demo-reactiverequires mongodn to be running locally, and even then fails when run first time, If you run it second time, it passes.Looks like it requires
lemontestdatabase to pre-exist. Couldn't we fix it by creating it beforehand? Or better yet, would be great if we could point it to an in-memory DB, or Docker or do something robust about it.Technical hint: See the
@SpringBootTestannotations onAbstractTests, and alsoMyTestUtils.initDatabase.