How can I write unit testing for an audio recorder module ? As per my current progress, it's only creating the file and no data is written into it since the recorder started & stopped eventually.
Asked
Active
Viewed 1,007 times
1 Answers
0
You can use Robolectric for this unit testing this. Robolectric has a shadow for MediaRecorder. For more details on this the following link will be helpful How to unit test android audio recording app using robolectric
If you have not used Robolectric you can check http://www.vogella.com/tutorials/Robolectric/article.html
Hope this helps.