Thanks for the content, please keep the series of tests coming. One thing I don't understand, is there a chance that the tests will fail except if the sql query is faulty? Are we testing the sql command here?
Thank you for your comment and I'm glad you found the video useful 😀. In regards to your question, in this video we focus on testing the DAO which is an interface that handles the interactions with the database. Since the SQL queries themselves are encapsulated by the DAO interface and their implementation is done by Room, there's a very low chance that the test would fail due to a faulty query. This test mainly focuses on testing the functionality of the DAO itself (not the SQL commands directly) and ensuring that it returns the expected results from the inMemoryDatabase. Hope that helps!
@@danieltalkscodeThank you for the answer.There is a subject that I cannot understand about testing.There is no business logic in the DAO layer.How can it give an erroneous result.Actually, my question is about testing in general.I would be very happy if there is a video about real use-case about Android testing.Thanks for everything.
these videos help me a lot!
Thanks for the content, please keep the series of tests coming. One thing I don't understand, is there a chance that the tests will fail except if the sql query is faulty? Are we testing the sql command here?
Thank you for your comment and I'm glad you found the video useful 😀. In regards to your question, in this video we focus on testing the DAO which is an interface that handles the interactions with the database. Since the SQL queries themselves are encapsulated by the DAO interface and their implementation is done by Room, there's a very low chance that the test would fail due to a faulty query. This test mainly focuses on testing the functionality of the DAO itself (not the SQL commands directly) and ensuring that it returns the expected results from the inMemoryDatabase. Hope that helps!
@@danieltalkscodeThank you for the answer.There is a subject that I cannot understand about testing.There is no business logic in the DAO layer.How can it give an erroneous result.Actually, my question is about testing in general.I would be very happy if there is a video about real use-case about Android testing.Thanks for everything.