In the early stages of "sub task creation" task #130 development, an update of the Dao queries broke repository unit tests.
It would have been better (and simpler to debug) to have unit test at Dao level to spot this in isolation.
This is currently tedious to achieve at the right place (in :tasks-core) because the lack of proper Room database setup required to create an in memory database.
That being said, same is for TaskRepository which belong to :tasks-core too but have its unit tests in :tasks-shared to allow in memory database creation (without mocking Dao).
In the early stages of "sub task creation" task #130 development, an update of the Dao queries broke repository unit tests.
It would have been better (and simpler to debug) to have unit test at Dao level to spot this in isolation.
This is currently tedious to achieve at the right place (in
:tasks-core) because the lack of proper Room database setup required to create an in memory database.That being said, same is for
TaskRepositorywhich belong to:tasks-coretoo but have its unit tests in:tasks-sharedto allow in memory database creation (without mocking Dao).