stereo icon indicating copy to clipboard operation
stereo copied to clipboard

Use of unit testing

Open ludelafo opened this issue 8 years ago • 1 comments

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 !

ludelafo avatar Feb 14 '18 18:02 ludelafo

I will periodically update my branch unit_tests with unit tests

faku99 avatar Mar 05 '18 08:03 faku99