stereo
stereo copied to clipboard
Use of unit testing
We should use unit tests to assure our library is safe.
I see the following tests:
- Can an audio file be loaded ?
- Can an audio file be played ?
- Can an audio file be stopped ?
- Can an audio file be paused ?
- Can an audio file be resumed ?
- Can an audio file be unload ?
- Can the duration of an audio file be retrieved ?
- Can the progress of an audio file be retrieved ?
- Can the remaining playing time be retrieved ?
- Can the audio file be started at a specific time/duration ?
- Is the audio file correctly stopped and unloaded at the end of the play ?
- Is the audio file starts at the beginning of the play on stop ?
- Is the audio file is correctly stopped before unloading ?
- Is the audio file still plays when the duration is changed while the audio file was playing ?
- Is the audio file still doesn't play when the duration is changed while the audio file was not playing ?
Let's discuss what more we could test !
I will periodically update my branch unit_tests with unit tests