From 24bef1ba3ea81e62c448a91fef30ea374f9d3acc Mon Sep 17 00:00:00 2001 From: Gergely Hegedus Date: Thu, 30 Jun 2022 15:42:08 +0300 Subject: [PATCH] Issue#90 Update documentation of TestDatabaseInitialization --- .../showcase/testutils/storage/TestDatabaseInitialization.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/sharedTest/java/org/fnives/test/showcase/testutils/storage/TestDatabaseInitialization.kt b/app/src/sharedTest/java/org/fnives/test/showcase/testutils/storage/TestDatabaseInitialization.kt index fe70364..7e745dd 100644 --- a/app/src/sharedTest/java/org/fnives/test/showcase/testutils/storage/TestDatabaseInitialization.kt +++ b/app/src/sharedTest/java/org/fnives/test/showcase/testutils/storage/TestDatabaseInitialization.kt @@ -11,6 +11,9 @@ import org.koin.dsl.module /** * Reloads the Database Koin module, so it uses the inMemory database with the switched out Executors. + * + * This is needed so in AndroidTests not a real File based device is used. + * This speeds tests up, and isolates them better, there will be no junk in the Database file from previous tests. */ object TestDatabaseInitialization {