Home / IOS Development / Voice test help for voice memo app: iOSProgramming

Voice test help for voice memo app: iOSProgramming



Hi, I have a task to write a voice memo app. Everything is fine so far, I have made an app that records voice, and plays voice again, but I have problems with how to write test for the app. Since data can not be easily spotted, do you have any idea how to approach this and write good device tests and ui test?

I use mvvm pattern where I have a user interface (viewController) that calls VM, and in VM I call service class and service class calls warehouse (I store paths to records in realm db). Service and Repo are protocols so I can make tests for service and later for the World Cup. But what should I do with the mock?
Any idea? How do you want to write tests for this app?

Thanks


Source link